hi,
raste gleich aus
habe folgendes array (seiralisiert, sodass jeder nachbauen kann)
mit print_r kommt unten das raus
[85] =>
[86] =>
[87] =>
[88] =>
[89] =>
[90] =>
[91] =>
[92] =>
[93] =>
[94] =>
[95] =>
[96] =>
[97] =>
[98] =>
[99] =>
[100] =>
[101] =>
[102] =>
okay, geh ich mit dieser funktion hin
na dann ist das immer noch da?
what the hell?
habe auch if strlen kleiner 1, auch pord versucht
das geht zum kotzen nicht weg
bitte hilfe
danke euch!
raste gleich aus
habe folgendes array (seiralisiert, sodass jeder nachbauen kann)
PHP-Code:
a:103:{i:0;s:51:"1,"D","g","Schüler 1",,,,1,3,2,,,,2,,,1,,3,,6,6,0
";i:1;s:48:"1,"A",,"Schüler 2",2,3,,,,,1,,,,3,,2,1,,,6,6,0
";i:2;s:51:"2,"B",,"Schüler 3",,,,,2,3,1,,,,2,,3,,1,"x",6,6,0
";i:3;s:51:"3,"C","s","Schüler 4",3,1,,,2,,,,,,,,3,1,2,,6,6,0
";i:4;s:48:"5,"D",,"Schüler 6",,,1,,2,3,,,,,,,2,1,3,,6,6,0
";i:5;s:48:"6,"A",,"Schüler 7",,3,,,,1,2,,,3,,,,2,1,,6,6,0
";i:6;s:54:"7,"C","g","Schüler 8",3,,2,,1,,,,,3,,,1,,2,"x",6,6,0
";i:7;s:48:"8,"B",,"Schüler 9",3,1,,,2,,,,,2,,,1,,3,,6,6,0
";i:8;s:52:"9,"A","g","Schüler 10",,,,,3,2,1,,,1,2,,,3,,,6,6,0
";i:9;s:50:"10,"B",,"Schüler 11",,2,3,,1,,,,,1,,,3,2,,,6,6,0
";i:10;s:50:"11,"B",,"Schüler 12",3,2,,,,,1,,,,1,,,3,2,,6,6,0
";i:11;s:53:"12,"B","g","Schüler 13",,,,,2,1,3,,,,2,,,3,1,,6,6,0
";i:12;s:53:"13,"D","s","Schüler 14",,,,,1,3,2,,,1,,,,3,2,,6,6,0
";i:13;s:56:"15,"C","s","Schüler 16",,3,2,,1,,,,,1,,,3,,2,"x",6,6,0
";i:14;s:53:"16,"C","w","Schüler 17",2,1,,,3,,,,,2,,,1,,3,,6,6,0
";i:15;s:53:"17,"A","s","Schüler 18",,2,,,3,,1,,,3,,,,2,1,,6,6,0
";i:16;s:53:"18,"B","g","Schüler 19",,,1,,3,2,,,,,,,3,2,1,,6,6,0
";i:17;s:50:"19,"B",,"Schüler 20",,2,,,3,,1,,,3,1,,,,2,,6,6,0
";i:18;s:53:"20,"B",,"Schüler 21",,,3,,1,2,,,,,,3,2,,1,"x",6,6,0
";i:19;s:49:"21,"B",,"Schüler 22",,,1,2,3,,,,3,,,,2,,1,,6,6,
";i:20;s:52:"22,"B","g","Schüler 23",,3,1,,2,,,,,3,,,2,,1,,6,6,
";i:21;s:49:"23,"B",,"Schüler 24",,,2,,,3,1,,,,3,,1,2,,,6,6,
";i:22;s:49:"24,"D",,"Schüler 25",,2,1,,,3,,,,,,,3,1,2,,6,6,
";i:23;s:52:"25,"A","s","Schüler 26",,,1,,2,3,,,,,,,2,3,1,,6,6,
";i:24;s:52:"26,"D","g","Schüler 27",,,,,2,1,3,,,,,,3,1,2,,6,6,
";i:25;s:52:"27,"A","s","Schüler 28",3,,2,,1,,,,,,,,2,1,3,,6,6,
";i:26;s:52:"28,"D","s","Schüler 29",2,,3,1,,,,,,3,,,,1,2,,6,6,
";i:27;s:49:"29,"C",,"Schüler 30",,2,,,1,,3,,,2,1,,,,3,,6,6,
";i:28;s:49:"30,"C",,"Schüler 31",,2,,,3,,1,,,3,,,2,,1,,6,6,
";i:29;s:52:"32,"A","w","Schüler 33",3,1,,,,,2,,,1,,,2,,3,,6,6,
";i:30;s:52:"34,"B","g","Schüler 35",2,3,,,1,,,,,2,,,1,,3,,6,6,
";i:31;s:49:"36,"C",,"Schüler 37",,2,,,1,3,,,,1,,,3,,2,,6,6,
";i:32;s:52:"37,"A","s","Schüler 38",,2,,,1,,3,,,2,,,3,,1,,6,6,
";i:33;s:49:"38,"B",,"Schüler 39",3,2,,,,,1,,,,1,,,3,2,,6,6,
";i:34;s:49:"39,"C",,"Schüler 40",3,2,,,1,,,,,3,,,1,,2,,6,6,
";i:35;s:49:"40,"A",,"Schüler 41",2,1,,,,,3,,,,,,2,1,3,,6,6,
";i:36;s:49:"41,"D",,"Schüler 42",2,,3,1,,,,,,3,,,,1,2,,6,6,
";i:37;s:49:"44,"A",,"Schüler 45",,,3,,2,1,,,,1,,,3,,2,,6,6,
";i:38;s:49:"45,"C",,"Schüler 46",3,,,,2,,1,,,1,,,2,,3,,6,6,
";i:39;s:49:"46,"C",,"Schüler 47",2,1,,,3,,,,,2,,,1,,3,,6,6,
";i:40;s:49:"47,"A",,"Schüler 48",,,1,,3,,2,,,2,,,1,3,,,6,6,
";i:41;s:52:"48,"D","s","Schüler 49",,,3,,,1,2,,,3,,,,2,1,,6,6,
";i:42;s:49:"49,"A",,"Schüler 50",,,,1,3,,2,,3,,,,1,2,,,6,6,
";i:43;s:49:"50,"D",,"Schüler 51",,,1,3,2,,,,3,1,,,2,,,,6,6,
";i:44;s:49:"51,"D",,"Schüler 52",2,,3,,1,,,,3,1,,,2,,,,6,6,
";i:45;s:49:"52,"C",,"Schüler 53",2,,,,,3,1,,,2,1,,3,,,,6,6,
";i:46;s:49:"53,"B",,"Schüler 54",,,,,2,1,3,,,,,,3,2,1,,6,6,
";i:47;s:52:"54,"D","s","Schüler 55",,,1,,2,3,,,1,,,3,,2,,,6,6,
";i:48;s:49:"55,"C",,"Schüler 56",,2,,,1,3,,,,3,,,2,,1,,6,6,
";i:49;s:49:"56,"C",,"Schüler 57",2,3,,,1,,,,,1,,,2,,3,,6,6,
";i:50;s:49:"57,"B",,"Schüler 58",,2,,,3,1,,,,1,,,3,,2,,6,6,
";i:51;s:49:"58,"A",,"Schüler 59",,2,,,1,3,,,3,2,,,1,,,,6,6,
";i:52;s:49:"59,"D",,"Schüler 60",,,,1,2,3,,,,3,,,1,2,,,6,6,
";i:53;s:49:"60,"D",,"Schüler 61",,,2,,1,3,,,,3,,,2,1,,,6,6,
";i:54;s:49:"61,"A",,"Schüler 62",,,1,,3,2,,,3,,,,1,2,,,6,6,
";i:55;s:49:"63,"B",,"Schüler 64",,1,,,3,,2,,,,1,,3,,2,,6,6,
";i:56;s:52:"64,"C",,"Schüler 65",1,3,,,2,,,,,3,,,1,,2,"x",6,6,
";i:57;s:52:"65,"D","g","Schüler 66",,,3,,2,1,,,,2,,,1,,3,,6,6,
";i:58;s:49:"66,"A",,"Schüler 67",,,1,,2,3,,,3,,,,2,1,,,6,6,
";i:59;s:51:"67,"Neu",,"Schüler 68",,,,,2,3,1,,,,,1,,2,3,,6,6,
";i:60;s:52:"68,"C","s","Schüler 69",3,2,,,1,,,,,,1,,3,,2,,6,6,
";i:61;s:49:"69,"D",,"Schüler 70",,,,,1,2,3,,,,,,3,1,2,,6,6,
";i:62;s:49:"70,"D",,"Schüler 71",,,1,,2,3,,,,,,,2,3,1,,6,6,
";i:63;s:49:"73,"B",,"Schüler 74",,3,,,1,2,,,,3,,2,1,,,,6,6,
";i:64;s:49:"75,"B",,"Schüler 76",,1,,,2,,3,,,,,2,3,1,,,6,6,
";i:65;s:52:"76,"A","s","Schüler 77",,2,,,,3,1,,,,2,,3,1,,,6,6,
";i:66;s:52:"77,"B","g","Schüler 78",,3,1,,,2,,,,,,1,3,2,,,6,6,
";i:67;s:49:"78,"B",,"Schüler 79",2,,3,,,1,,,,,,1,3,2,,,6,6,
";i:68;s:49:"79,"B",,"Schüler 80",2,,1,,3,,,,,,,,3,2,1,,6,6,
";i:69;s:49:"80,"D",,"Schüler 81",,,3,1,2,,,,,1,,,2,,3,,6,6,
";i:70;s:49:"81,"B",,"Schüler 82",,1,,,2,,3,,,3,,,2,,1,,6,6,
";i:71;s:49:"82,"D",,"Schüler 83",,,1,3,2,,,,,3,,2,,,1,,6,6,
";i:72;s:49:"83,"C",,"Schüler 84",1,3,,,,2,,,,2,3,,1,,,,6,6,
";i:73;s:49:"84,"A",,"Schüler 85",,2,,,1,,3,,,,,,2,1,3,,6,6,
";i:74;s:52:"85,"B","w","Schüler 86",,2,,,,3,1,,,,1,,,3,2,,6,6,
";i:75;s:49:"86,"C",,"Schüler 87",,1,,,3,,2,,,1,,,3,,2,,6,6,
";i:76;s:52:"87,"C",,"Schüler 88",2,,3,,,,1,,,2,1,,,,3,"x",6,6,
";i:77;s:49:"88,"C",,"Schüler 89",,1,,,2,3,,,,3,,,1,,2,,6,6,
";i:78;s:49:"89,"D",,"Schüler 90",2,,1,,,3,,,,2,,,1,3,,,6,6,
";i:79;s:52:"90,"A","g","Schüler 91",,1,,,3,,2,,,,,,2,1,3,,6,6,
";i:80;s:52:"91,"C","s","Schüler 92",3,2,,,1,,,,,3,,,1,,2,,6,6,
";i:81;s:49:"92,"D",,"Schüler 93",,,1,,2,3,,,,,,,1,2,3,,6,6,
";i:82;s:49:"93,"D",,"Schüler 94",,,1,,3,2,,,3,,,,1,,2,,6,6,
";i:83;s:52:"94,"A","g","Schüler 95",,2,,,3,,1,,,3,,,,2,1,,6,6,
";i:84;s:49:"95,"A",,"Schüler 96",3,1,,,2,,,,,,,,3,2,1,,6,6,
";i:85;s:0:"";i:86;s:0:"";i:87;s:0:"";i:88;s:0:"";i:89;s:0:"";i:90;s:0:"";i:91;s:0:"";i:92;s:0:"";i:93;s:0:"";i:94;s:0:"";i:95;s:0:"";i:96;s:0:"";i:97;s:0:"";i:98;s:0:"";i:99;s:0:"";i:100;s:0:"";i:101;s:0:"";i:102;s:0:"";}
[85] =>
[86] =>
[87] =>
[88] =>
[89] =>
[90] =>
[91] =>
[92] =>
[93] =>
[94] =>
[95] =>
[96] =>
[97] =>
[98] =>
[99] =>
[100] =>
[101] =>
[102] =>
okay, geh ich mit dieser funktion hin
PHP-Code:
function unsetEmpty($array){
if(!is_array($array)) return -1;
else{
for($i = 0; $i<count($array); $i++){
if($array[$i] == ''){unset($array[$i]);}
}
return $array;
}
}
what the hell?
habe auch if strlen kleiner 1, auch pord versucht
das geht zum kotzen nicht weg
bitte hilfe
danke euch!
Kommentar