<?php
$str = 'Do you like Zun Shang or Sha Qian Mo? ';
$boy=var_dump($str);
echo $boy;
?>
This code The output is string(39). Do you like Zun Shang or Sha Qian Mo?
<?php
$str = 'Do you like Zun Shang or Sha Qian Mo? ';
$boy=gettype($str);
echo $boy;
?>
This code The output is string
. They are all strings. What does var_dump output more than one (39) mean?
var_dump’s 39 means its number of bytes