Articles → PHP → Strpos Function In PHP
Strpos Function In PHP
Purpose
Example
<!DOCTYPE html>
<html>
<body>
<?php
echo "The position of first instance of had is at:".strpos("i had had my lunch","had");
?>
</body>
</html>
Output
Click to Enlarge
Posted By - | Karan Gupta |
|
Posted On - | Tuesday, October 13, 2020 |