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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:42:27+00:00 2026-05-27T02:42:27+00:00

i have the following data being pulled out from a databasse that is being

  • 0

i have the following data being pulled out from a databasse that is being inserted via checkboxes.

here is the print_r($sockets):

a:6:{i:0;s:6:"UK 15A";i:1;s:5:"CEE22";i:2;s:6:"Schuko";i:3;s:6:"French";i:4;s:5:"Swiss";i:5;s:6:"Danish";}

What is the best way just to show the checkbox value i.s the ones in-between quotes???

I tried to use explode(); but im not sure if this is right.

Thanks

  • 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-05-27T02:42:28+00:00Added an answer on May 27, 2026 at 2:42 am

    It looks like serialized data.

    you can use unserialize() on it

    $data=unserialize($str);
    print_r($data);
    

    Result

    Array
    (
        [0] => UK 15A
        [1] => CEE22
        [2] => Schuko
        [3] => French
        [4] => Swiss
        [5] => Danish
    )
    

    Loop through the array and access the values.

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

Sidebar

Related Questions

I have some data being loaded from a server, but there's no guarantee that
I have the following data being generated from a google spreadsheet rss feed. いきます,go,5
I have the following data being returned from a query. Essentially I am putting
I have the following data being returned from my database query: +---------------+-----------+------------------+--------------+-------+ | district_name
I have the following code, which compiles but doesn't bring back any data. Here
I have the following data set that I am trying to plot with ggplot2,
I have some code that requests some JSON from an API. When data is
I'm working with PHP 5 here. I have the following code: $data = json_decode($_POST['data']);
I have a problem after the data being fetched from Core Data. I filled
I have the following code that creates my table. I insert data into it

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.