Php chop() function
The php chop() function will remove white space from right side of the character.
Following are the example of chop() function
<?php
$str = "Hello World!\n\n";
echo $str;
echo chop($str);
?>
The Source output will be
<html>
<body>
Hello World!
Hello World!</body>
</html>
The browser output will be
Hello World! Hello World!
The php chop() function will remove white space from right side of the character.
Following are the example of chop() function
<?php
$str = "Hello World!\n\n";
echo $str;
echo chop($str);
?>
The Source output will be
<html>
<body>
Hello World!
Hello World!</body>
</html>
The browser output will be
Hello World! Hello World!
No comments:
Post a Comment