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

  • Home
  • SEARCH
  • 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

Ask A Question

Stats

  • Questions 178k
  • Answers 178k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Here's a code snippet, assuming you want a linear normalization.… May 12, 2026 at 3:39 pm
  • Editorial Team
    Editorial Team added an answer erl_call uses the rpc functions on an erlang node to… May 12, 2026 at 3:39 pm
  • Editorial Team
    Editorial Team added an answer Found a solution, normal method - pull a simple styled… May 12, 2026 at 3:39 pm

Related Questions

I am looking for an efficient way to determine the position of the least
I am looking for an efficient way to detect the number of unique values
I am looking for an efficient way to create a file whose size is
I am looking for an efficient way to cut floating number at Javascript which

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.