Php related Interview questions and answers
Saturday, 31 March 2012
Q: How can reverse strings in php
strrev
—
Reverse a string
<?php
echo
strrev
(
"Hello world!"
);
// outputs "!dlrow olleH"
?>
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment