PHP Compiler
<!DOCTYPE html> <html> <body> <?php $str = "John "; // without chop() echo $str . "Doe <br>"; // with chop() echo chop($str) . "Doe"; ?> </body> </html>
OUTPUT
John Doe
JohnDoe
×

Save as Private