We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

What is the problem with the code below? How can it be fixed in PHP?

Hello,
i am just create a simple program but this can be give error.What is the solution of it?
Please anyone can help me to find out the error.

$referenceTable = array(); $referenceTable['val1'] = array(1, 2); $referenceTable['val2'] = 3; $referenceTable['val3'] = array(4, 5); $testArray = array(); $testArray = array_merge($testArray, $referenceTable['val1']); var_dump($testArray); $testArray = array_merge($testArray, $referenceTable['val2']); var_dump($testArray); $testArray = array_merge($testArray, $referenceTable['val3']); var_dump($testArray);

1 Reply

DJ Davis Jebaraj Syncfusion Team January 30, 2020 01:31 PM UTC

Hi Harsh,

This is a General Forum for discussing Syncfusion related questions, so please consider posting general programming questions to Stack Overflow.

You would need to include the error message that you are getting also when posting there.

Regards,

Davis

Loader.
Live Chat Icon For mobile
Up arrow icon