2. String Functions I i need Help


#1



<?php
// Get a partial string from within your own name
// and print it to the screen!
$myname="santiago";
?>



<?php
// Make your name upper case and print it to the screen:
$uppercase=strtoupper($myname);
print $uppercase;
?>



<?php
// Make your name lower case and print it to the screen:
$lowercase = strtolower($uppercase);
print $lowercase;
print "";
$partial=substr($myname, 0, 3);
print $partial;
?>


.
Hello, i have the problem with this the error is Oops, try again. Did you remember to print your substring? and i don't understand the error .

#2

<?php
// Get a partial string from within your own name
// and print it to the screen!
$myname="santiago";
?>

The problem I see is of order.
In first section you had to print substring of your name not in last section.

Again,if you go with this method, Your editor may freeze but refresh it and hit submit and you'll go to go for next section!


#3

Thanks so much brother have a nice day jajajaajaj


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.