hallo leute. ich wollte diese code mit eine schleife komprimieren, weis jemand wie das geht
Code:
$datumzeit2= $last_inserted1[0][0]; $temp3=explode(" ",$datumzeit2); $temp4=explode(".",$temp3[0]); $datumzeit2=$temp4[2]."-".$temp4[1]."-".$temp4[0]." ".$temp3[1]; $rest1=strtotime($datumzeit2); $datumzeit3= $last_inserted2[0][0]; $temp5=explode(" ",$datumzeit3); $temp6=explode(".",$temp5[0]); $datumzeit3=$temp6[2]."-".$temp6[1]."-".$temp6[0]." ".$temp5[1]; $rest2=strtotime($datumzeit3); $datumzeit4= $last_inserted3[0][0]; $temp7=explode(" ",$datumzeit4); $temp8=explode(".",$temp7[0]); $datumzeit4=$temp8[2]."-".$temp8[1]."-".$temp8[0]." ".$temp7[1]; $rest3=strtotime($datumzeit4); $datumzeit5= $last_inserted4[0][0]; $temp9=explode(" ",$datumzeit5); $temp10=explode(".",$temp9[0]); $datumzeit5=$temp10[2]."-".$temp10[1]."-".$temp10[0]." ".$temp9[1]; $rest4=strtotime($datumzeit5); $datumzeit6= $last_inserted5[0][0]; $temp11=explode(" ",$datumzeit6); $temp12=explode(".",$temp11[0]); $datumzeit6=$temp12[2]."-".$temp12[1]."-".$temp12[0]." ".$temp11[1]; $rest5=strtotime($datumzeit6);
Kommentar