我有这个数组:
Array
(
[15] => 13.1
[16] => Mark one answer
[19] => You see a car on the hard shoulder of a motorway with a HELP pennant displayed. This means the driver is most likely to be
[20] => a disabled person first aid trained
[21] => a foreign visitor
[22] => a rescue patrol person
[25] => DES s15, HC r278);
Run Code Online (Sandbox Code Playgroud)
如何从0对键进行排序?得到这个:我知道有一个功能,但我的头被烧了,排序功能不适合我的需要,因为他们重新排列值,我需要它们被保存.
Array
(
[0] => 13.1
[1] => Mark one answer
[2] => You see a car …
Run Code Online (Sandbox Code Playgroud) 我正在运行一个使用file_get_contents的php脚本,以便将列表中的内容邮寄到该远程文件中.如果我手动运行脚本一切正常,但当我离开它并等待cron运行时它不会得到那个远程内容.....这可能吗?我在这里复制一些代码,我认为问题是:
$flyer = file_get_contents('flyer.html');
$desti = $firstname." ".$lastname;
$mail = new phpmailer();
$mail->IsSMTP();
$mail->CharSet = 'UTF-8';
$mail->SMTPAuth = true;
$mail->SMTPSecure = "ssl";
$mail->Host = "orion.xxxx.com"; // line to be changed
$mail->Port = 465; // line to be changed
$mail->Username = 'bob@xxxx.com'; // line to be changed
$mail->Password = 'xxxx90'; // line to be changed
$mail->FromName = 'Bob'; // line to be changed
$mail->From = 'bob@xxxx.com';// line to be changed
$mail->AddAddress($email, $desti);
$mail->Subject = 'The Gift Store'; // to be changed …
Run Code Online (Sandbox Code Playgroud)