3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'Hello India'; $result = strpos($str, 'i'); // strpos will return the position of i in string then using element position we can retrive the i var_dump($str[$result]);

preferences:
40.8 ms | 402 KiB | 5 Q