var a = [{'nom' : '1', 'test' :'test1', 'desc' : 'desc1'},
{'nom' : '2', 'test' : 'test2', 'desc' : 'desc2'},
...,
{'nom' : 'n', 'test' : 'testn', 'desc' : 'descn'}
];
var dict = {};
for (index = 0; index < a.length; ++index) {
var key = a[index].nom + "";
if (key in dict) { } else
{
dict[key] = [];
}
dict[key].push(a[index].test + ' - ' + a[index].desc);
}
<?php
class Page_Portfolio extends Page_Basic{
private $menu;
public function actionIndex() {
$this->menu;
}
public function actionHtml(){
$this->menu;
}
}
<?php
class Page_Portfolio extends Page_Basic{
public function actionIndex() {
}
public function actionHtml(){
$this->actionIndex();
}
}
select * from mails where name = "name";
илиselect * from mails where name = 'name';
mysql_query("SELECT * FROM mails WHERE name='$template'");