Mega Code Archive
Categories
/
Php
/
Strings
Some string examples
Number: $num"; $num = 9; $str = '
Number: $num
'; $str = 'This is a test.'; $first = $str[0]; $str = 'This is still a test.'; $last = $str[strlen($str)-1]; ?>