Jump to content

Returning two arrays from a function


rbrown

Recommended Posts

I got it to return a single array by calling:

 

Parse_Custom_Fields($input,&$first_array){...

 

But I need it to return a second array but I can't get the first section right.

I tried:

Parse_Custom_Fields($input,&$first_array&$second_array){...

 

Parse_Custom_Fields($input,&$first_array,&$second_array){...

 

Parse_Custom_Fields($input,&$first_array,$second_array){...

 

How do I do this?

I don't want to add it to the first array if I don't have to.

 

Thanks,

 

Link to comment
Share on other sites

Doh!

You are right...

This worked...

 

Parse_Custom_Fields($input,&$first_array,&$second_array){...

 

I had a typo when I was calling the function...

Wasn't paying attention to the error message....

Tired.... been programming since 1am.

I think it's time for a nap.

Thanks...

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.