> chop in php ~ Online tutorial

chop in php

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

<?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";
?>

Output
welcome to india
welcome toindia

Please Give Us Your 1 Minute In Sharing This Post!
Please Give Us Your 1 Minute In Sharing This Post!
SOCIALIZE IT →
FOLLOW US →
SHARE IT →
Powered By: BloggerYard.Com

0 comments: