0

My page is throwing php notice, i can ignore them by hiding notices in config file php.ini, but am think of resolving it once & for all.

The code is

       <?php 
            $timeframe = preg_split('#(?<=\d)(?=[a-z])#i',$value->time_frame); 
            echo $timeframe[0]." ".ucfirst($timeframe[1]); 
        ?>

the undefined offset is coming on this line:

echo $timeframe[0]." ".ucfirst($timeframe[1]); 
Muhammad Hassaan
  • 7,296
  • 6
  • 30
  • 50
Sunny
  • 45
  • 1
  • 6

0 Answers0