Welcome Guest, Not a member yet? Register   Sign In
[Solved] Return $data question
#1

(This post was last modified: 02-15-2016, 03:37 AM by wolfgang1983.)

When I var dump my my $message variable it displays the multiple messages which is  correct.

But the return only shows one as shown here.

[Image: error_s.png]

How can I produce the same on return


PHP Code:
public function display_error_messages($open_tag '<p>'$close_tag '</p>') {

if (isset(
$this->error_message)) {

 
 foreach($this->error_message as $msg) {

 
   $message $open_tag $msg $close_tag;
 
   var_dump($message);

 
 }


}

return 
$message;


There's only one rule - please don't tell anyone to go and read the manual.  Sometimes the manual just SUCKS!
Reply


Messages In This Thread
[Solved] Return $data question - by wolfgang1983 - 02-15-2016, 02:35 AM
RE: Return $data question - by Diederik - 02-15-2016, 02:51 AM
RE: Return $data question - by wolfgang1983 - 02-15-2016, 02:57 AM
RE: Return $data question - by Avenirer - 02-15-2016, 03:02 AM
RE: Return $data question - by wolfgang1983 - 02-15-2016, 03:06 AM
RE: Return $data question - by Avenirer - 02-15-2016, 03:27 AM
RE: Return $data question - by wolfgang1983 - 02-15-2016, 03:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB