Re: explode Programming Web Development by tnjiric …lines);$i++) { echo $lines[$i].'<br>'; $images=explode(":",$lines[$i]); } [/CODE] If you want to …//an empty line while(($line = fgets($fh))!= null) { $image = explode(":",$line); } [/CODE] This will read line by line…, and for reach line, take it and explode it by ":" character. So at the end… explode Programming Web Development by kukuruku Hi ,traing to explode list like 1. one.gif 2. two.gif [CODE]$datain= file_get_contents($filename); $lines=explode("\n",$datain); for($i=0;$i<sizeof($lines);$i++) { echo $lines[$i].'<br>'; $images=explode(":",$lines[$i]); }[/CODE] Re: explode() Programming Web Development by diafol $ids = array(12,13,14); foreach($ids as $id) echo $id; No need to explode. `explode()` cuts a **string** into an array. Or... $ids = array(12,13,14); echo $ids[0]; echo $ids[1]; echo $ids[02]; explode() help Programming Web Development by Exploded Fiber I have a string- 3,3,2,2,3,3,3,2,3 - Is it possible to explode it by length, such as: 1-> [3,3,2] 2-> [2,3,3] 3-> [3,2,3] Re: explode() help Programming Web Development by cwarn23 There are two possibilities and are as follows [CODE]<?php //method 1 explode(',',$input); //method 2 str_split ($input,6); ?>[/CODE] explode() Programming Web Development by malatamil i need to show the array values separate $ids = array(12,13,14); $ids1 = explode(",", $ids); echo $ids1; if i run this it shows array explode url and explode array....... Programming Web Development by kasakit …a $url and i need to explode the every 3 array from my first explode.. $content = explode ($url) result array[1] …array[2] array[3]// need to explode array[4] array[… the array result in 40+ so i need to explode the every next 3 array.. sorry for my bad… Re: explode url and explode array....... Programming Web Development by kasakit … = $cntry[0]; $city = $cntry[1]; $country1 = $cntry[2]; $country2 = explode ("</td>",$country1); } elseif($count>=7… = $cntry[0]; $city = $cntry[1]; $country1 = $cntry[2]; $country2 = explode ("</td>",$country1); } else { $street = $cntry[0… explode problem Programming Web Development by nukabolhi …, I am confused, how to explode the numbers from database. Simply I can Explode, but after explode I have to relate the numbers… 1, 2 from here echo $array=explode(",",$exp); // cannot get the output from explode function, How can I get the… Re: explode url and explode array....... Programming Web Development by Mongooseman … = 0; $i < count($array); ++$i) { if($i % 3 == 0) explode($array); }[/CODE] The $i % 3 will return the remainder of… Re: explode problem Programming Web Development by nukabolhi … WHERE c_id=1") or die (mysql_error()); // while loop to explode while ($row4=mysql_fetch_array($sql4)) { $exp=$act_name=$row4['impid']; $aname=$row4…['sport_name']; $price=$row4['sport_price']; $try=explode(",",$exp); } if(strstr($try, ',')){ $array=explode(",",$try); }else{ $array = array… Re: explode problem Programming Web Development by cossay …; .mysql_error()); $result_returned = mysql_fetch_object($result) or die(mysql_error()); //explode the result into its components $exploded = explode("-", $result_returned->birthday); //Now $exploded… Explode and Implode Programming Web Development by sakush100 The explode function breaks the data in $kkkk into fragments and stores … whenever - is encountered. Now the problem is i want to explode the same data, whenever Enter key was used. Please help…]<?php // TO BREAK THE DATA INTO SMALL PARTS $ooo = explode("-", $kkkk); for($i=0;$i<count($ooo… Re: Explode and Post doesn't seem to work together Programming Web Development by sikka_varun Hey.. in incoming.php file... make sure that the explode is not called after the insert query.. Because in the code you pasted above.. it seems to be that explode is called after the $sid and $student are assigned to query.. put explode and $sid=$part[0]..... statement before $sql insert query statement... Then check again.. Re: Explode and Implode Programming Web Development by ZZZubec [CODE]explode( "\r\n", $data );[/CODE] in "Windows OS" or [CODE]explode( "\n", $data );[/CODE] in *unix Explode and Post doesn't seem to work together Programming Web Development by mikeabe … getting an id AND name from a dropdown menu using EXPLODE. With this code, all columns are fed correctly to Mysql…('Could not connect: ' . mysql_error()); } mysql_select_db("DisciplineIncoming", $con); $part = explode("|", $_POST['student']); // $part[0] is now client_id// $part… Explode and implode vectors and strings Programming Software Development by maddog39 This snippet will allow you to separate or "explode" strings into vectors via a character separator or the …-test-string"; std::vector<std::string> myvector = explode("-", mystring); std::vector<std::string>::iterator… explode error? Programming Web Development by daryll1 … the colossal cave game. i am trying to use the explode function to split my string up into variables to check…> <!-- items --> <?php $commands = $_REQUEST['commands']; $comm = EXPLODE(” ”, $commands); echo “0 = $comm[0]<br />”; echo “1… explode function Programming Web Development by cane23 i am trying to use the explode function to take a variable as the string under consideratiom …[0]; // this will contain the string containing the parameters $par= explode (",",$row); echo " $par[2]"; //$sql_1="… Explode() for XML output using group_concat in SQL query help please Programming Web Development by mar06 …) { $paths .= "<opt>"; [b]$productname = explode(',', $row['products']); $productimage = explode(',', $row['productimages']); $paths .= "<id>" . $productname… Re: explode textarea to array Programming Web Development by odysea …; <?php if ($_POST) { $names = explode(",", $_POST['textareaname']); print_r($names ); foreach($names… bit ? [QUOTE=Shanti Chepuru;1430304]use explode function.. Assume $_POST['textareaname'] is your … textarea name. see this: [code] $names = explode(",", $_POST['textareaname']); print_r($names ); foreach… Explode a $_POST Programming Web Development by Szabi Zsoldos … with a $_POST[]. The thing is that I want to explode my $_POST but it doesn't let me for something…] case 2: if(strstr($_POST['modelBox'],'^')) { $ex = $_POST['modelBox']; $explodeBox = explode('^',$ex); if($explodeBox[1] == '') { $modelBox = ' WHERE model = "'.$explodeBox[0… Explode value to input field Programming Web Development by markii.borabon_1 Im trying to explode the value of my query to input field so im … edit them: this what I've got so far :: $temp = explode(',',$sizes); if($temp){ $ctr_size=''; foreach($temp as $size){ echo "… Explode not working PHP Programming Web Development by burhanahmed92 I want to explode this string $string = "WATER VALVE COMPLETE (5 PORT) Company: (…: EA Description: Caretaker 5-Port Water Valve, Complete"; $e = explode($string, "Company"); But not working, I want the… Re: Explode not working PHP Programming Web Development by diafol You can use explode I suppose: $bits = explode(' Company:', $string); $product = $bits[0]; Or you can use `strpos()` and `substr()` Explode an array and return as X times n p Programming Web Development by SimonIoa … have a problem. I want to do two things First, explode an array to retrieve the ids from a row on…=mysqli_fetch_array($q,MYSQLI_ASSOC); if(strlen($row1['to_uid_fk'])>1) { $s = explode(",", $row1['to_uid_fk']); foreach($s as $a) { $query=mysqli_query… Re: Explode and Post doesn't seem to work together Programming Web Development by mikeabe …]','$_POST[Absent]','$_POST[Inhouse]' ,'$_POST[Suspension]','$_POST[Allpresent]')"; $part = explode("|", $_POST['student']); // $part[0] is now client_id// $part… Re: Explode and Post doesn't seem to work together Programming Web Development by mikeabe …('Could not connect: ' . mysql_error()); } mysql_select_db("DisciplineIncoming", $con); $part = explode("|", $_POST['student']); // $part[0] is now client_id// $part… Re: explode error? Programming Web Development by kireol …> <!-- items --> <?php $commands = $_REQUEST['commands']; $comm = EXPLODE(" ", $commands); echo "0 = $comm[0]<br… Re: explode function Programming Web Development by JRM …[0]; // this will contain the string containing the parameters $par= explode (",",$row); echo " $par[2]"; //$sql_1="…