Skip to content

how to get value inside JsonObject

im trying this new method Ion. with PDO and I got stuck where I want to get value inside JsonObject. I previously used Volly with msqli but I find Ion. more organized and PDO more safe. whenever I try …

PHP separate values by comma

I am trying to separate my JSON Array: WHERE What i need is if one column like “Front_glass”:”X, XXX_or_XX, G” has three values it should be or any thing that is possible Thanks. Answer You can use array_map function in your case. Look here live PHP sandbox

PHP Regex Match Specific Pattern between Quotes

I have strings with the following pattern: adfadfadfadfadfadfafdadfa”externalId”:”UCEjBDKfrqQI4TgzT9YLNT8g”afadfadfafadfdaffzfzfzxf Basically, I need to find “externalId” and extract it’s value in between the quotes that follow. The length of the value can change so i…

How to receive Fetch() POST in php?

So i got this POST json method here, but can’t understand how to get my json data It’s packed in BLOB which is packed in FormData How to receive such POST in php? (and convert this FormData(Blob) back to json?) JS I’m big noobo, so i can’t even receive it Seems like it works differentl…