list() function is used to assign values to a list of variable in one operation
syntaxlist(var1,var2,...)
<?php $sum=array("india","pak"); list($a,$b)=$sum; echo "we are ,a $a,amd $b"; ?> |
we are a india and pak
>
list() function is used to assign values to a list of variable in one operation
syntax<?php $sum=array("india","pak"); list($a,$b)=$sum; echo "we are ,a $a,amd $b"; ?> |
0 comments:
Post a Comment