<?php
$text = " This is a beautiful day with nature in its pleasant weather and I had a great time";
echo str_ireplace("a","the");
echo "/n";
echo "str_ireplace";
?>
Fatal error: Uncaught ArgumentCountError: str_ireplace() expects at least 3 arguments, 2 given in /in/U7k3b:3
Stack trace:
#0 /in/U7k3b(3): str_ireplace('a', 'the')
#1 {main}
thrown in /in/U7k3b on line 3
Process exited with code 255.