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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T01:12:13+00:00 2026-06-05T01:12:13+00:00

I see it in WordPress in the database and i now see similar in

  • 0

I see it in WordPress in the database and i now see similar in a cookie. What kind of parser parses this:

a:4:{s:14:"clientsorderby";s:9:"firstname";s:12:"clientsorder";s:4:"DESC";s:13:"ordersorderby";s:2:"id";s:11:"ordersorder";s:4:"DESC";}

I get it, its a=array:x=number of children s=string:x=number of characters.

Is there a parser built into php for this kind of thing? why do they use this method?

  • 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-05T01:12:14+00:00Added an answer on June 5, 2026 at 1:12 am

    It’s PHP’s built-in serialize(), which can be “decoded” with unserialize()

    Here is an example:

    $serialized = 'a:4:{s:14:"clientsorderby";s:9:"firstname";s:12:"clientsorder";s:4:"DESC";s:13:"ordersorderby";s:2:"id";s:11:"ordersorder";s:4:"DESC";}';
    $unserialized = unserialize( $serialized);
    
    var_dump( $unserialized);
    

    Output:

    array(4) {
      ["clientsorderby"]=>
      string(9) "firstname"
      ["clientsorder"]=>
      string(4) "DESC"
      ["ordersorderby"]=>
      string(2) "id"
      ["ordersorder"]=>
      string(4) "DESC"
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I see wordpress database on wp_posts table, there are 2 columns to store post
In wordpress, I have the loop.php file. There I can see the 'read more'
See this question. How to show popup message like in stackoverflow I am trying
I am familiar with previous Wordpress installers, but in this new version I've hit
Suppose I create a site in Wordpress, which is running on Elastic Beanstalk. Now,
I have been configuring a wordpress theme for a month now, but know I
I installed php and mysql on my IIS 7, Now, I can see the
I am getting the error: error establishing a database connection after moving my wordpress
following the tutorial at http://josephscott.org/archives/2010/03/database-powered-css-in-wordpress-themes/ i am trying to use wordpress' parse_request function to
This is for a custom Wordpress page but I think the basic array principles

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.