Home > Article > Backend Development > Single quotes in php (conversion between int type and string type)
Sample code:
$a = '10';
var_dump(gettype($a));
settype($a,'int');
var_dump(gettype($a));
The output results at this time are: string, interger
But if:
$a = 10;
var_dump(gettype($a));
settype($a,'int');
var_dump(gettype($a));
The output results at this time are all single quotes in interger
php! ! !
').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });The above introduces the single quotes in PHP (conversion between int type and string type), including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.