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