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 8006371
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T17:29:36+00:00 2026-06-04T17:29:36+00:00

Array ( [0] => Array ( [event_title] => Registration [event_id] => 17 [location_id] =>

  • 0
Array (
  [0] => Array ( 
    [event_title] => Registration
    [event_id] => 17
    [location_id] => 113
  )
  [1] => Array (
    [event_title] => Sunday Collections
    [event_id] => 67
    [location_id] => 113
  )
  [2] => Array (
    [event_title] => School Tuition
    [event_id] => 68
    [location_id] => 113
  )
)

Can anyone tell me how to extract event_title, event_id and location_id from this array? I want to display this in the form of a table actually.

  • 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. Editorial Team
    Editorial Team
    2026-06-04T17:29:38+00:00Added an answer on June 4, 2026 at 5:29 pm

    To display it in a table, you can do this:

    <table>
      <tr>
        <th>Event Title</th>
        <th>Event ID</th>
        <th>Location ID</th>
      </tr>
    <?php foreach($array as $item): ?>
      <tr>
        <td><?php echo $item['event_title'] ?></td>
        <td><?php echo $item['event_id'] ?></td>
        <td><?php echo $item['location_id'] ?></td>
      </tr>
    <?php endforeach; ?>
    </table>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I can index a 2d numpy array with a tuple or even a list
How can I sort this array by the value of the "order" key? Even
I have following array: var events = [ {id : 1, start : 100,
Is it even possible to create an array of bits with more than 100000000
In my model I have an array of objects called events. I would like
I know that if there is even no object in array there is still
I'm getting the error Invalid argument supplied for foreach() even though the array being
array = ['item1', 'item2', 'item3', 'item4'] output = array.toString() This gets me item1,item2,item3,item4 but
array = ['blue', 'red', 'green', 'green', 'red', 'blue', 'black', 'blue'] ...the output I'm trying
Using FullCalendar ( http://arshaw.com/fullcalendar/ ) to pull events from a MySQL database table via

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.