Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 36033
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T14:19:47+00:00 2026-05-10T14:19:47+00:00

I am looking for an efficient way to pull the data I want out

  • 0

I am looking for an efficient way to pull the data I want out of an array called $submission_info so I can easily auto-fill my form fields. The array size is about 120.

I want to find the field name and extract the content. In this case, the field name is loanOfficer and the content is John Doe.

Output of Print_r($submission_info[1]):  Array (       [field_id] => 2399       [form_id] => 4       [field_name] => loanOfficer       [field_test_value] => ABCDEFGHIJKLMNOPQRSTUVWXYZ       [field_size] => medium       [field_type] => other       [data_type] => string       [field_title] => LoanOfficer       [col_name] => loanOfficer       [list_order] => 2       [admin_display] => yes       [is_sortable] => yes       [include_on_redirect] => yes       [option_orientation] => vertical       [file_upload_dir] =>       [file_upload_url] =>       [file_upload_max_size] => 1000000       [file_upload_types] =>       [content] => John Doe       )  

I want to find the field name and extract the content. In this case, the field name is loanOfficer and the content is John Doe.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T14:19:47+00:00Added an answer on May 10, 2026 at 2:19 pm

    You’re probably best off going through each entry and creating a new associative array out of it.

    foreach($submission_info as $elem) {     $newarray[$elem['field_name']] = $elem['content']; } 

    Then you can just find the form fields by getting the value from $newarray[<field you’re filling in>]. Otherwise, you’re going to have to search $submission_info each time for the correct field.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am looking for an efficient way to find out if a resource (mostly
I am looking for an efficient way to compare data between an Oracle and
I'm looking for the efficient way of replacing approximate values (ushort[100]) for their target
I am looking for an efficient way to store users' information in a SQL
I'm looking for an efficient way to convert axes coordinates to pixel coordinates for
I am looking for an efficient way to determine if a set is a
I'm looking for an efficient way to chance a string such that all sequences
Coming from the ruby on rails world, I'm looking for an efficient way to
I am looking for an efficient way to replace URLs in an NSString (or
I'm looking for an efficient way to left-shift a tuple. What I've done so

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.