<?php
trim(ereg_replace( ' +', ' ', $extraWhiteSpace));
?>
Varchar in SQL means string in PHP.
If you will see this example as below, this may help. <?php $string = mysql_real_escape_string($string); $sql = "insert into stringtable(mystring) values('$string')"; ?>
$string ="Guess my length"; $length = strlen($string); now the $length will have the length of the string.
It is fairly simple to check the length of a string in PHP. All you need to do is use the function strlen(). Below is an example of how it is used. <?php $my_text = "Hello"; echo strlen($my_text); // outputs 5 ?>
The eval() function evaluates a string as PHP code. http://us.php.net/manual/en/function.eval.php
Delimiter is a special character or a symbol to seperate the string
A predefined function can reverse a string as shown below:echo strrev('pizza'); // outputs: azzip
By using css. Setting top and bottom margins generally does the trick
It's a php (web script) string that turns characters into "dots" in most password fields.
Not possible through html. Use php strrev function. For eg:
build an array of vowels then do a foreach on the array and then explode the string on the array value and the answer is -1 of the result
You can do this: <?php if ( $word === strrev( $word ) ) { echo "The word is a palindrome"; } else { echo "The word is not a palindrome"; }