Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php loop through json

$arr = json_decode('[{"var1":"9","var2":"16","var3":"16"},{"var1":"8","var2":"15","var3":"15"}]');

foreach($arr as $item) { //foreach element in $arr
    $uses = $item['var1']; //etc
}
Comment

PREVIOUS NEXT
Code Example
Php :: ubuntu install php mongodb extension 
Php :: In PackageManifest.php line 131: Undefined index: name laravel 7 
Php :: laravel debugbar 
Php :: url decode function in php 
Php :: codegreper 
Php :: php make query string from array http_build_query 
Php :: string replace smarty 
Php :: laravel request all except 
Php :: laravel table data types 
Php :: php referral 
Php :: laravel redirect external url 
Php :: php isarray 
Php :: get cart page url in woocommerce 
Php :: php delay 
Php :: php cut off first x characters 
Php :: display date time twig 
Php :: hide .php from url .htaccess 
Php :: php multidimensional array search by value 
Php :: how assign current date to input type date html in php 
Php :: undo php artisan optimize 
Php :: php numbers from 1 to 100 array 
Php :: uninstall php 8.0 ubuntu 
Php :: wp wc php if cart page is empty redirect 
Php :: how to install php fm 
Php :: fopen(F:xampphtdocsEscubydustoragefonts//themify_normal_f60486608aadd4e36c92c9895f99838f.ufm): failed to open stream: No such file or directory 
Php :: cast array to object php 
Php :: get last 3 characters of string in php 
Php :: woocommerce terms and condition fields checked by default 
Php :: php remove first and last char 
Php :: php check if json 
ADD CONTENT
Topic
Content
Source link
Name
8+1 =