What is a tinytext in php and what´s the difference between tinytext and string?
Question
I got a debug report on a site written in php (debug information of an easydutyplan parser) and I saw
[rowParam] => Array
(
[0] => BIGINT
[1] => BIGINT
[2] => INT
[3] => TINYTEXT
[4] => TINYTEXT
[5] => TINYTEXT
)
What is the difference between a tinytext and a string? And is bigint the same as an Int64 in C#?
La solution
These actually have nothing to do with PHP. They are MySQL data types.
http://dev.mysql.com/doc/refman/5.0/en/blob.html
http://dev.mysql.com/doc/refman/5.0/en/storage-requirements.html
http://dev.mysql.com/doc/refman/5.0/en/numeric-types.html
Tinytext is used as a field type to reserve L + 1 bytes, where L < 2 to the 8th.
Autres conseils
PHP does not have these data types. These look like database data types. If you use the normal php debug: var_dump($your_variable);
you can see the PHP data types for your structure.
here's a reference to php's data types