Data Types
$n = 25; # a numeric scalar
$str = "Here is a string";
print('The value of $n is ' . $n);
# Note strings with ' ' do not have
# variable "interpolation" performed
# But strings with " " DO have it.
print("The value is $n.");
Previous slide
Next slide
Back to first slide
View graphic version