Answer the question
In order to leave comments, you need to log in
How to select an element from an array?
There is an array items.php:
<?PHP
return array(
array(
'number' => '10',
'sysname' => 'name1',
'url' => '/',
'title' => 'Title 1',
'promo' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.'),
array(
'number' => '20',
'sysname' => 'name2',
'url' => '/',
'title' => 'Title 2',
'promo' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.'),
);
$items = include 'items.php';
echo (isset($_GET["brand"])) ? $_GET["brand"] : "";
$item = array(
'' => '',
);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question