how can i get the \"filesize\" from a string in php?
I put the string in a mysql database as a blob and i need to store the size of the blob. My solution was to create
If all you are storing is the string, then the size should be the length of your string times the number of bytes in the charset. So for Unicode that would be 2*strlen($string).