That output is not wyrd, it's a Stripe JSON string. standing for Javascript Object Notation (website).
There's a lot of questions on Stackoverflow about JSON so ask things such as How to convert JSON string into a PHP array.
Also Stripes own documentation (which is very good), states:
JSON is returned by all API responses, including errors, although our API libraries convert responses to appropriate language-specific objects.
from the Stripe Documentation
Edit:
You can read A useful question about turning a JSON string into an object and vice versa
So now you know what JSON is
Using it to get a PHP customer object. (revised)
$e // customer JSON of all customers.
$customers = $e->__toArray(true);
//$customers = json_decode($e);
And then process the array $customers
as you need to in your applicaton.
NOTE:
The value of $customers
or $customersArray
will be an Object or a String data type so you need to treat the appropriately, and they will not display with echo
because echo is a string output function, so you need to use print_r()
or var_dump()
to display these values -in their raw form- on the screen.
EDIT TWO
Recommended that from your screenshot that you format the API response from Stripe into an Array of Objects. This can be done by following this Stack Overflow Answer here.
Please review my revised code above.