Strings (cont)
Other operations on strings:
. (dot) for string concatentation (cf. Perl's . or Java's + )
$x = 127;
print "Result is ".sqrt($x)."\n";
|
trim() removes whitespace from left and right ends of string
// $s == " blah blah "
$s = trim($s);
// $s == "blah blah"
|
|