Split String at the first five <br />'s with php

hawkinscougar

New Member
\[code\]<?php$text = <<<EOT<br /> 1 <br /> 2 <br /> 3 <br /> 4 <br /> 5 <br /> 6 <br /> 7 <br /> 8 <br /> 9 <br /> 10 <br /> 11 <br /> 12 <br /> 13 <br /> 14 <br /> 15 <br /> 16 <br /> 17 <br /> 18 EOT;?>\[/code\]I want split $txt and result \[code\]$txt="<br /> 1 <br /> 2 <br /> 3 <br /> 4 <br /> 5 ";\[/code\]I want split position 5 of \[code\]<br />\[/code\]1,2,3,4 is random stringPlease help me
 
Back
Top