Being somewhat new to php, I am trying to understand some syntax regarding the use of "@" in the code I'm currently working on.
First, the pre-existing code works just fine. the line that confuses me is written like this:
Code: Select all
@extract(load_page(info/file.php));"Load_page" is a custom function - I know what it does, no problem.
"info/file.php" is also a known entity to me, and is not today's issue - it works fine. The total function points to a record in a table, gets a bunch of info from the correct record into an array, later used to display on the page. As I say, it all works.
But what do you suppose "@extract" is? I know php has an extract() function, and because I find no reference to "@extract" being any sort of custom code within this particular web site, I am assuming the line is referring to the php function. but why wouldn't the original author have simply used:
Code: Select all
extract(load_page(info/file.php));thanks,
tc