So after some hours of research I didn´t find the solution to this:
$data1 = $_POST['dats'];
$sign = $_POST['sign'];
$teile = explode("$sign", $data1);
foreach($teile AS $newdat)
{
echo'<center><img src="http://somedomain.com/&text=',$newdat[0],'"></center></br>';
}
The foreach shows only the first number (ex. 1) but the array contains numbers like 1234. So the rest (234) is cutet off
Thanks for your help
In $newdat
is string only, not array.
foreach($teile AS $newdat) {
echo'<center><img src="http://somedomain.com/&text=',$newdat,'"></center></br>';
} // ^^ remove '[0]'
in foreach use $newdat for $newdat[0]
Use index value of array
$data1 = $_POST['dats'];
$sign = $_POST['sign'];
$teile = explode("$sign", $data1);
foreach($teile AS $key=>$newdat)
{
echo'<center><img src="http://somedomain.com/&text=',$newdat[$key],'"></center></br>';
}