Its JSON, to convert to array use json_decode():

$string = '{"status":"2","holding":"","company":"Company","nik":"8981237","name":"Markonah","ownercard":"Istri"}';
$my_array = json_decode($string,true);
echo $my_array["status"]; // output: 2
Answer from aidinMC on Stack Overflow
๐ŸŒ
Simplilearn
simplilearn.com โ€บ home โ€บ resources โ€บ software development โ€บ converting string to array in php using different methods
Converting String to Array in PHP Using Different Methods
September 17, 2025 - Understand the need to convert string to array in PHP and explore the complete list of methods used to convert a string to an array in PHP. Start learning now!
Address: 5851 Legacy Circle, 6th Floor, Plano, TX 75024 United States
Discussions

php - Parse the returned data from var_dump() - Stack Overflow
I wrote this function (out of fun:) and because I'm lazy AF I wanted a short way to convert an array inside a string to a valid PHP array. More on stackoverflow.com
๐ŸŒ stackoverflow.com
November 16, 2011
Convert array string into an array - PHP - SitePoint Forums | Web Development & Design Community
Hi - how do I convert an array string into an array (i.e. the following values into an array). It may already look like an array but PHP is seeing it as a string (just need to convert it please). Array ( [plaintext] => This is an example CV. [filename] => 1345550846.doc ) More on sitepoint.com
๐ŸŒ sitepoint.com
0
August 21, 2012
Convert particular String to Array in PHP - Stack Overflow
This example shows a valid string version of json. Use json_decode, with the 2nd parameter set to true to turn the embedded objects into array elements. You will get an embedded array of arrays, but you can easily flatten that using the spread operator (...) with array_merge. Copy More on stackoverflow.com
๐ŸŒ stackoverflow.com
php - Split a string containing words into an array of individual words - Stack Overflow
The str_split($str, 3); splits the string in 3 character word but I need to convert the string after whitespace in an array. More on stackoverflow.com
๐ŸŒ stackoverflow.com
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ php โ€บ convert-a-string-into-an-array-of-characters-in-php
Convert a String into an Array of Characters in PHP - GeeksforGeeks
July 23, 2025 - The str_split() function is used to convert the given string into an array. This function basically splits the given string into smaller strings of length specified by the user and stores them in an array and returns the array.
๐ŸŒ
SitePoint
sitepoint.com โ€บ php
Convert array string into an array - PHP - SitePoint Forums | Web Development & Design Community
August 21, 2012 - Hi - how do I convert an array string into an array (i.e. the following values into an array). It may already look like an array but PHP is seeing it as a string (just need to convert it please). Array ( [plaintexโ€ฆ
๐ŸŒ
Edureka
edureka.co โ€บ blog โ€บ string-to-array-in-php
How to Convert a String to Array in PHP - Edureka
October 30, 2019 - PHP provides functions that convert from strings to arrays.
Find elsewhere
๐ŸŒ
Code Boxx
code-boxx.com โ€บ home โ€บ 7 ways to convert string to array in php
7 Ways To Convert String To Array In PHP
November 13, 2023 - The json_decode(STRING) function takes a (previously) JSON encoded string, and turns it back into an array (or object). Yes, for you guys who have not heard, JSON stands for Javascript Object Notation.
๐ŸŒ
Upgrad
upgrad.com โ€บ home โ€บ blog โ€บ software development โ€บ string to array in php: a list of popular functions for 2025
String to Array in PHP: What Functions You Need to Know?
July 6, 2026 - Access to the data is made easier and more secure as a result. You can use arrays to achieve faster operations and better data organisation. PHP, a robust programming language, has several built-in methods for converting a string to an array.
๐ŸŒ
Quora
quora.com โ€บ How-can-we-convert-a-string-into-an-array-in-Python-or-PHP
How can we convert a string into an array in Python or PHP? - Quora
Answer: In PHP that depends on how the string needs to be split up in the resulting array. For char per array position you can use: [code] str_split(string $string, int $length = 1): array [/code]If the optional [code ]length[/code] parameter is specified, the returned array will be broken down...
๐ŸŒ
Laracasts
laracasts.com โ€บ discuss โ€บ channels โ€บ laravel โ€บ convert-string-array-to-array-of-ints
convert string array to array of int(s)
$integerIDs = array_map('intval', json_decode($string, true)); ... @snapey is right, json_decode('["382","266","18","60"]') seems like the cleanest way to do it.
๐ŸŒ
arrayThis
arraythis.com
Online array converter; convert your text list to array | arrayThis
Instantly convert your text list to array using arrayThis online tool; valid arrays for JS, PHP, PERL, Python and much more.
๐ŸŒ
YouTube
youtube.com โ€บ watch
Use THIS Method to Convert String to Array in PHP #php #shorts - YouTube
This video shows you how you could easily convert a string into an Array in PHP. PHP offers the explode built-in function, which allows you to split a string...
Published: February 15, 2023
๐ŸŒ
YouTube
youtube.com โ€บ watch
PHP - Turn Strings into Arrays with explode() - YouTube
Find code and diagrams at: https://www.EliTheComputerGuy.com
Published: May 1, 2020
๐ŸŒ
Intellipaat
intellipaat.com โ€บ home โ€บ blog โ€บ converting a string to an array in php
Convert String to Array in PHP using Different Functions
August 13, 2026 - Learn how to convert a string to array in PHP using functions like explode() and str_split(). Includes code examples and practical use cases.