> list() in php ~ Online tutorial

list() in php

list() function is used to assign values to a list of variable in one operation

syntax
list(var1,var2,...)


<?php

$sum=array("india","pak");
list($a,$b)=$sum;
echo "we are ,a $a,amd $b";


?>

Output

we are a india and pak

Please Give Us Your 1 Minute In Sharing This Post!
Please Give Us Your 1 Minute In Sharing This Post!
SOCIALIZE IT →
FOLLOW US →
SHARE IT →
Powered By: BloggerYard.Com

0 comments: