Saervok
07-29-2011, 08:00 AM
Ok... still very new to PHP so bear with me... might not explain this quite right.
I am trying to take the output from another php file and use it to change the value of the status variable within a multi-dimensional array. So for every member of that array, I would like to be able to check the operatorstatus.php take its output and associate it with the appropriate status.
The problem I am having is that I am unsure how to call that file within the function, save its output to a variable, and then use either an if/else statement or case statement to change each members status based on the value of the returned variable. If anyone could point me in the right direction as to what syntax to use, it would be greatly appreciated.
I am trying to take the output from another php file and use it to change the value of the status variable within a multi-dimensional array. So for every member of that array, I would like to be able to check the operatorstatus.php take its output and associate it with the appropriate status.
The problem I am having is that I am unsure how to call that file within the function, save its output to a variable, and then use either an if/else statement or case statement to change each members status based on the value of the returned variable. If anyone could point me in the right direction as to what syntax to use, it would be greatly appreciated.