This function uses a backtrace generated from debug_backtrace and so will not work at all in PHP < 4.3.0. The frame should reference the frame that contains the source of the error.
Parameter
array $code
Results of debug_backtrace()
unused $params
integer $backtrace
backtrace frame.
Return value
returns either array('file' => file, 'line' => line, 'function' => function name, 'class' => class name) or if this doesn't work, then false
Deliver First Class Web Sites: 101 Essential Checklists Want to learn how to make your web sites usable and accessible? Want to ensure that your sites meet current best practice, without spending hours trawling through incomprehensible specifications and recommendations from dozens of different books, research papers, and web sites? Want to make sure that the sites you build are "right the first time," requiring no costly redevelopments?