I am pulling values submitted from a form and displaying them in a couple different formats. Sometimes I need the values to be echo-ed in lowercase and sometimes I need any capitalization preserved, depending on the section of the page. However, I need all values to have the slashes stripped out.
I am using the following format to echo the lowercase values
<?php echo strtolower ( $keyword ); ?>
This is working fine. Though, adding 'stripslashes' to that is throwing an error. I'm sure I'm not formatting it correctly.
How do I accomplish both of these items?
Update
I was simply asking a question related to PHP formatting and syntax but, in order to appease Oli Charlesworth . . .
<?php echo stripslashes strtolower ( $keyword ); ?>
This is the code I had tried. And this is the error it was throwing ...
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/content/u/s/e/username/html/folder/code.php on line 63