Jump to content
Sign in to follow this  
arnasfomenko

Die dumping a variable

Recommended Posts

Hello,

 

    public function validate(array $get, array $post)
    {
        $cgOrder = $this->coingateCallback($this->ifSet($post['id']));
        $return_status = false;
        $status = null;

        dd($cgOrder);

 

Any ideas how to make cgOrder appear on the screen so I could see what values it holds?

 

Share this post


Link to post
Share on other sites

I usually use print_r to see the content of a variable, is more human-friendly.

public function validate(array $get, array $post)
{
	$cgOrder = $this->coingateCallback($this->ifSet($post['id']));
	$return_status = false;
	$status = null;

	// Debug
	print_r($cgOrder);
	exit;

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×