answersLogoWhite

0

<?php

trim(ereg_replace( ' +', ' ', $extraWhiteSpace));

?>

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

What is var char in php?

Varchar in SQL means string in PHP.


How to use strings with PHP and MySQL?

If you will see this example as below, this may help. &lt;?php $string = mysql_real_escape_string($string); $sql = "insert into stringtable(mystring) values('$string')"; ?&gt;


How do you get the length of an ANSI string using PHP?

$string ="Guess my length"; $length = strlen($string); now the $length will have the length of the string.


How do you check the length of a string in PHP?

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. &lt;?php $my_text = "Hello"; echo strlen($my_text); // outputs 5 ?&gt;


What does the php function eval?

The eval() function evaluates a string as PHP code. http://us.php.net/manual/en/function.eval.php


What is PHP Delimiter?

Delimiter is a special character or a symbol to seperate the string


How do you reverse a string in PHP?

A predefined function can reverse a string as shown below:echo strrev('pizza'); // outputs: azzip


How do you remove the whitespaces above and below the list items that come when we create a UL in HTML?

By using css. Setting top and bottom margins generally does the trick


How does password appear as a string of dots?

It's a php (web script) string that turns characters into "dots" in most password fields.


How do you write string in reverse through the HTML tags?

Not possible through html. Use php strrev function. For eg:


How do you count the vowels in a string using PHP?

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


Write a PHP program to check whether the string is palindrome or not?

You can do this: &lt;?php if ( $word === strrev( $word ) ) { echo "The word is a palindrome"; } else { echo "The word is not a palindrome"; }