If I have a text file and in PHP for example want to read that test file but only a certain part what commands could I use to do this ? Sorry but I am a beginner in PHP and I am lost ...
Say for ex I have a txt file and the contents are one line ...
live life today (2:30)
and all I want to subract into a PHP variable say $time is the 2:30 in the ( ) is there programming code that allows me to do that ? or even if I wanted variable $word to say be the second word LIFE no matter how long the first word is ? in other words even if the txt file line was
second life today
then life sucks
live life well
etc etc is there a way to do this in PHP ?
I know how to do so in SHELL ( linux ) but not in php ?