php

PHP Soap Server Repeat the Same Element

In a SOAP service I work on, I needed to generate a response that repeated the same element. Something like this. <SOAP-ENV:Envelope xmlns:SOAP-ENV=”http://schemas.xmlsoap.org/soap/envelope/” xmlns:ns1=”http://www.example.com/WebService/”> <SOAP-ENV:Body> <ns1:getPhoneNumbersResponse> <numbers> <number>123341344</number> <number>329822938</number> </numbers> </ns1:getPhoneNumbersResponse> </SOAP-ENV:Body> </SOAP-ENV:Envelope> Getting this to work in the PHP code took a bit of fussing around. You can’t just create a hash, because the PHP Soap Server Repeat the Same Element

PHP: To Type Hint or Not

Apparently some people think type hinting with PHP is stupid. I don’t agree. I’ve been writing PHP since PHP version 3 and I think one of the greatest clunk factors in PHP has been that it’s loosely typed. You can never be sure that a string is a string, or is it an integer this PHP: To Type Hint or Not

Swiftmailer $record Hash Format

Swiftmailer is cool. It’s a really useful PHP library to make sending email messages really simple. The problem is that it lacks documentation, or the documentation is out there some where, but I can’t find it. One issue that I kept running into was, what’s the structure of the $record hash that the handler’s write() Swiftmailer $record Hash Format