chop()
The chop() function will remove a white space or other predefined character from the right end of string.This function is an alias the rtrim()function
Syntax
chop(string,charlist)
Example
OutputThe chop() function will remove a white space or other predefined character from the right end of string.This function is an alias the rtrim()function
Syntax
chop(string,charlist)
Example
<?php $str="welcome to "; echo $str; echo "india"; echo "<br>"; //remove the whitespace from the right end of a string ech chop($str); echo "india"; ?> |
welcome to india
welcome toindia
0 comments:
Post a Comment