I'm getting an error trying to make this
$array = array("text");
echo "text $array['0']";
it's possible to make it shis way instead concatenate
echo "text ".$array['0'];
I'm getting an error trying to make this
$array = array("text");
echo "text $array['0']";
it's possible to make it shis way instead concatenate
echo "text ".$array['0'];
1. You need to remove '
around 0
echo "text $array[0]";
Output:- https://eval.in/993458
2.Or enclose array element with {}
echo "text {$array['0']}";
Output:-https://eval.in/993460