Hi there,
First things first: thanks for your job :)
I have been trying php-ar but I dont realize how to print the output
using something like foreach or while
I mean, if I have something like:
$users= User::find('all');
...and I want to print it using foreach, I dont know how to do this.
Subject: [newbie question] Printing output (foreach, while, etc)
Hi there,
First things first: thanks for your job :)
I have been trying php-ar but I dont realize how to print the output
using something like foreach or while
I mean, if I have something like:
$users= User::find('all');
...and I want to print it using foreach, I dont know how to do this.
Thanks in advance
=== solved ===
$array= User::find('all');
foreach($array as $value){
}