Skip to content

Instantly share code, notes, and snippets.

@jcsalterego
Created December 14, 2008 23:23
Show Gist options
  • Save jcsalterego/35830 to your computer and use it in GitHub Desktop.
Save jcsalterego/35830 to your computer and use it in GitHub Desktop.
<?php
class SmartXML implements ArrayAccess
{
private var $xml;
public __construct($xml)
{
$this->xml = $xml;
}
public function offsetExists($key)
{
}
public function offsetGet($key)
{
}
public function offsetSet($key, $value)
{
}
public function offsetUnset($key)
{
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment