PHP Classes

File: simpleExample.php

Recommend this page to a friend!
  Classes of Joe Bloggs   ArrayToXML   simpleExample.php   Download  
File: simpleExample.php
Role: Example script
Content type: text/plain
Description: Client Side Example - Simple
Class: ArrayToXML
Send and receive arrays as XML via HTTP
Author: By
Last change:
Date: 16 years ago
Size: 254 bytes
 

Contents

Class file image Download
<?php
require_once("./ArrayToXML.class.php");

$myArray = array( "name"=>"Joe", "age"=>"36" );

$Request = new ArrayToXMLClient( "./simpleServer.php", $myArray );

$responseArray = $Request->getResponseArray( );

echo
$responseArray['response'];