Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
explode
- Page 1
Re: explode
Programming
Web Development
13 Years Ago
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
13 Years Ago
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
10 Years Ago
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
15 Years Ago
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
15 Years Ago
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
10 Years Ago
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
14 Years Ago
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
14 Years Ago
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
14 Years Ago
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
14 Years Ago
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
14 Years Ago
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
14 Years Ago
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
14 Years Ago
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
16 Years Ago
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
14 Years Ago
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
16 Years Ago
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
17 Years Ago
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
15 Years Ago
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
15 Years Ago
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
14 Years Ago
by mar06
…) { $paths .= "<opt>"; [b]$productname =
explode
(',', $row['products']); $productimage =
explode
(',', $row['productimages']); $paths .= "<id>" . $productname…
Re: explode textarea to array
Programming
Web Development
14 Years Ago
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
13 Years Ago
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
10 Years Ago
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
9 Years Ago
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
9 Years Ago
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
9 Years Ago
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
16 Years Ago
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
16 Years Ago
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
15 Years Ago
by kireol
…> <!-- items --> <?php $commands = $_REQUEST['commands']; $comm =
EXPLODE
(" ", $commands); echo "0 = $comm[0]<br…
Re: explode function
Programming
Web Development
15 Years Ago
by JRM
…[0]; // this will contain the string containing the parameters $par=
explode
(",",$row); echo " $par[2]"; //$sql_1="…
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC