function removeWhiteSpace($exp)
{
$exp2 = str_replace(" ", "", $exp);
return $exp2;
}
?>
Before Removal
Remove the white space from the
(x + y)/(x - y)
which is
15 characters long.
There are 4 white spaces in
(x + y)/(x - y) with the first at position:
3 and the last one at position:
13 in the string.