<?php $string = 'hello world'; $selectedString = ''; for ($i = 0; $i == 5; $i++) { $selectedString[$i] = $string[$i]; } var_dump($selectedString);
You have javascript disabled. You will not be able to edit any code.