Sunday, 14 July 2013

PHP program to trim a string

<!DOCTYPE html>
<html>
<body>

<%
name = " W3Schools "
response.write("visit" & name & "now<br>")
response.write("visit" & trim(name) & "now<br>")
response.write("visit" & ltrim(name) & "now<br>")
response.write("visit" & rtrim(name) & "now")
%>


</body>
</html>



OUTPUT 




visit W3Schools now
visitW3Schoolsnow
visitW3Schools now
visit W3Schoolsnow 

0 comments:

Post a Comment