[{label: "value"}] // невалидно
[{"label": "value"}] // валидно
[{"label": 'value'}] // невалидно
function filterFiles(arr, extensions, ignore) {
extensions = extensions || [];
ignore = ignore || [];
var getFileExt = function (filename) {
return (/[.]/.exec(filename)) ? /[^.]+$/.exec(filename)[0] : undefined;
}
return arr.filter(function (item) {
return -1 === ignore.indexOf(item) && -1 !== extensions.indexOf(getFileExt(item));
});
}
// usage
var files = filterFiles([ "Hawaii mvc_mcycle_Data-Summary0812a.html", "bg1.png", "compatibility.js", "f1.woff", "f2.woff", "f3.woff", "f4.woff", "f5.woff", "pdf2htmlEX-64x64.png", "pdf2htmlEX.min.js" ], ['png'], ['pdf2htmlEX-64x64.png']);
The documentation should have this info. The function time() returns always timestamp that is timezone independent (=UTC).
will try to parse that format into a Unix timestamp (the number of seconds since January 1 1970 00:00:00 UTC), relative to the timestamp given in now, or the current time if now is not supplied.
$mysql_result = mysql_query("SELECT id,id_team,name FROM team");
// $mysql_array = mysql_fetch_array($mysql_result); - лишняя
while($row = mysql_fetch_array($mysql_result)) {
echo '<tr>
<td>'.$row["id"].'</td>
<td>'.$row["id_team"].'</td>
<td>'.$row["name"].'</td>
</tr>';
}