I'm using this string to get what's needed:
echo "<div id=\"lot\">".$table->children(2)->children(0)->plaintext."</div>";
And I get the result: 01 02 03 04 05 06 10 15 17 27 31 etc.
What I need is to add <div id=\"new\"></div>
to each number.
<div id=\"new\">01</div> <div id=\"new\">02</div>
etc etc.
I tried to use the code below but it doesn't work
$table = $box_rezult->find("table.last-d", 0);
$results = $table->children(2)->children(0)->plaintext;
$string = $results;
$var1 = str_replace(" ", "<div id=\"new\"> </div>", $string);
echo $var1;
I would appreciate any help, thanks!
Thanks to everyone!!