Skip to content

Convert PHP HTTP request to Guzzle

I currently have an old PHP page which carries out a post request to an external API but i am wanting to convert this to Guzzle to tidy it up but im not sure if im on the right lines with this. PHP …

convert number with decimals without

I make a query to mysql and I get this number: 26,613,080 and I need to convert that number to: 266,130 or 266.130 (it does not matter if it is , or . ) I was doing some tests with number format or removing the last 2 numbers but I can’t get it to stay as I need. Thanks Answer

Ajax PHP placing variables in string for API call

I have read and attempted to implement all solutions I found on the web but until now I can’t get this to work, so time to ask for help: I send the following Ajax call to my PHP file: this invokes the following call in the php file: Everything works okay, but what I’d like to do next is replace