Running A Select Query: Select method

Foreach ($users as $user) {
    echo $user->name;
}

The first argument passed to the select method is the raw SQL query, while the second argument is any parameter bindings that need to be bound to the query.

Will always return an array of results.

Running A Select Query: Select method — Structure map

Clickable & Draggable!

Running A Select Query: Select method — Related pages: