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

str ireplace mixed str_ireplace ( mixed $search , mixed $replace , mixed $subject [, int &$count ] ) N

chop chop() PHP Function chop() is identical to the rtrim function string rtrim(string $str[, string $charlist ]) Strips characters including he

die The die function Die('') is a very useful php function. You can place "die anywhere in a script that want that script to terminate. It also provides a bit of f

md5 file How to Use md5_file()php function md5 is a mathematical algorithm that is commonly called the md5 digest. The md5 procedure takes alphanumeric input and perfo

echo echo Echo is used in php scripts to output html characters to the screen. echo is one of the most used functions in the php language.

.
 

Leave a Comment

parse_str

Name:      | Email:      | Website:

Comment:


captcha

Enter The Above Security Code: