php - Getting specific part of value in mysql database
Get the solution ↓↓↓Solution:
The "meta_value" string that you have provided is actually serialized PHP (http://php.net/serialize).
You can simply take the value that you have retrieved from the database and call unserialize() on it to turn it back into an object or array.
From what you've provided, you should be able to do something like:
$unserialized = unserialize($row['meta_value']);
echo $unserialized['url']; // should produce "https://YOURLINK.COM/LINKMEHARD"
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: 403 this action is unauthorized.
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.