Run ❯
Get your
own PHP
server
Result Size:
625 x 565
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <body> <?php $replace = array("1: AAA","2: AAA","3: AAA"); // Replace AAA in each string with BBB echo implode("<br>",substr_replace($replace,'BBB',3,3)); ?> </body> </html>
1: BBB
2: BBB
3: BBB