console.log( Math.floor( Math.random() * Number.MAX_SAFE_INTEGER + 1 ) );
console.log( Math.random().toString().slice(2) )
( new class( "Hello" )
{
public function __construct( $str )
{
echo( $str );
}
});
// Можно без скобок :
new class( "Hello" )
{
public function __construct( $str )
{
echo( $str );
}
};
// Можно с переменной:
$cl = new class( "Hello" ){
public function __construct( $str )
{
echo( $str );
}
};
var_dump( $cl );
...
require_once($_SERVER['DOCUMENT_ROOT'].'\Extension\phpexcel\PHPExcel\IOFactory.php');
$excel = \PHPExcel_IOFactory::load("$temp_dir/$file");
$arr = $excel->getActiveSheet()->toArray(null,true,true,true);
foreach ($arr as $key => $value) {
$tab_num = $value["B"];
...