i have a file structured like this: http://pastebin.com/dvja3YkT and my goal is to get the text after group:, since i have the name under Users: I tried exploding like this:
$boom = explode($open, "$user");
Where $open is a file_get_contents that works well, and $user is an username. When i use $boom[0], it outputs the user i am looking for, but when i try $boom[1] it says Notice: Undefined offset: 1. Is there any way to get the group name after
group:
if i know the username under
Users:
Username:
?
PS: i forgot to mention that the file will keep updating, so i need a method to get the user's group if he's in the list, otherwise i send him an error message