Category: php functions

.

How to use parse_str()

parse_str(string $str [,array &$arr ])

 <?php

$string = 'firstVar=first&secondVar=second&thirdVar=third';

parse_str($string);

echo $firstVar; // outputs first

echo firstVar; // outputs second

echo firstVar; // outputs third

?>

The pars_str() php function converts the string variables into php variables with the same name that the string variable was . This is very useful for parameters that are passed via a URL string. Url arguments begin after the "?". Each variable is separated using the "&" character.

Author: D.Shaun Morgan

rtrim See Also: rtrim() trim()

php functions php

stripslashes How to use stripslashes <?php $exampleString = 'My\ex\ampl\e'; $charlist = 'ea';

ltrim ltrim ltrim() php function ltrim removes the leftmost entity from a string in PHP. " " (ASCII 32 (0x20) - space. "\t" (ASCII 9 (0x09)) - tab. "\n

explode explode(); The explode(); php function is one that is used a lot. For example, you might want to read website content into a php script and then parse and manipu

.
 

Leave a Comment

parse_str

Name:      | Email:      | Website:

Comment:


captcha

Enter The Above Security Code: