2/8 - String Functions I

// Get a partial string from within your own name
// and print it to the screen!
$myname = "Cameron"
$partial = substr($myname, 0 , 3);
print $partial;

I get the error that I did not print out my substring, what's the error? Thanks in advance.


You need to add ; after Cameron on line 4


Wow, can't believe I missed that! :joy: thanks a lot!