Thursday 18 June 2015

organize css into proper way online

http://www.styleneat.com/

http://ctrlq.org/beautifier/


http://www.freeformatter.com/html-formatter.html

Tuesday 16 June 2015

fetching data from std class object

stdClass Object
(
    [ABRPayloadSearchResults] => stdClass Object
        (
            [request] => stdClass Object
                (
                    [identifierSearchRequest] => stdClass Object
                        (
                            [identifierType] => ABN
                            [identifierValue] => johnsmith
                            [history] => N
                        )

                )

            [response] => stdClass Object
                (
                    [dateRegisterLastUpdated] => 0001-01-01
                    [dateTimeRetrieved] => 2015-06-16T21:19:38.3159717+10:00
                    [exception] => stdClass Object
                        (
                            [exceptionDescription] => Search text is not a valid ABN or ACN
                            [exceptionCode] => WEBSERVICES
                        )

                )

        )

)
this result coming in variable print_r($results)   so fetching particular values -

 echo $result->ABRPayloadSearchResults->request->identifierSearchRequest->identifierType;

echo $result->ABRPayloadSearchResults->response->exception->exceptionDescription;