Сообщения

Сообщения за Январь, 2016

php stuff

foreach по ссылке:
foreach ($books as &$book) {$captured = ($book->captured_id !== NULL) ? $book->captured : FALSE;$title = $book->title;$book = array(// "url" => $book->url,"image" => ($captured === FALSE) ? '' : $this->getImage($captured->image),"order" => $book->num_order);}return $books;