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()

strip tags StripTags() php function Striptags() is a php function that literally strips HTML tags out of files that are streamed in to php with a function like

var dump var_dump() var_dump() is very useful when you want to know what is inside of a php variable at certain spot in your php script.

php functions php

implode how to use implode() php function The implode() php function is exactly the opposite of explode(). It takes an array of strings

.

 

Leave a Comment

parse_str

Name:      | Email:      | Website:

Comment:


captcha

Enter The Above Security Code: