Location: PHPKode > scripts > Image to PHP Standalone Output > image-to-php-standalone-output/SampleImages.php
<?php
class SampleImages {
	protected $files = array(
		"docGif"=>array(
			"image/gif",
			"R0lGODlhGAAWAPcAAP39/vf//+f3/+fv9+fv7+fn597v/9bv/9bn98zs/87n/8bn/97n78be/87W/73e/7XW/63W/6XW/73O/63O97XG562197W956W13qWt1pyl1oSl3oSczoyUvWb//2bM/2ut50Kl93uUxnuEzkKM1jOZ/3OEvTMzzGtzpWZmmTMAmWNjYwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///yH5BAEAAA8AIf4cVWxlYWQgR0lGIFNtYXJ0U2F2ZXIgVmVyIDIuMAAsAAAAABAAFgBABCDwyUmrvTjrzbv/YChywFd6Z5eST+m217rJGp3ZGB5jEQA7"
		),
		"docNodeLastGif"=>array(
			"image/gif",
			"R0lGODlhEAAWALMAAICAgP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///yH5BAEAAA8AIf4cVWxlYWQgR0lGIFNtYXJ0U2F2ZXIgVmVyIDIuMAAsAAAAABAAFgBABBvwyUmrvTjrzbv/YChywFd6Z5eST+m2YyzPXgQAOw=="
		),
		"docNodeLastFirstGif"=>array(
			"image/gif",
			"R0lGODlhEAAWALMAAICAgP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///yH5BAEAAA8ALAAAAAAQABYAQAQY8MlJq7046827/2AojmQJAg+qpmbrvlIEADs="
		),
		"folderNodeGif"=>array(
			"image/gif",
			"R0lGODlhEAAWALMAAICAgP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMDAwAAAAAAAAAAAAP///yH5BAEAAAsALAAAAAAQABYAAAQycMlJq5Xg6n0z/xUgjmNnWt4iTCmVrpgpzPOS3ewE26eaoz0XiQQqxoxIXtLYWnKakwgAOw=="
		),
		"folderNodeFirstGif"=>array(
			"image/gif",
			"R0lGODlhEAAWAPcLAICAgP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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A8AIf4cVWxlYWQgR0lGIFNtYXJ0U2F2ZXIgVmVyIDIuMAAsAAAAABAAFgBABBnwyUmrvTjrzbv/YChywFd6Z5eSZou6KlxFADs="
		),
	);

	public function __get($name) {
		if (headers_sent()) die();
		if (isset($this->files[$name])) {
			header("Content-Type: ".$this->files[$name][0]);
			echo base64_decode($this->files[$name][1]);
			die();
		} else {
			die();
		}
	}
}
if (isset($_GET["i"])) {
	$image = new Teste();
	$image->$_GET["i"];
}
Return current item: Image to PHP Standalone Output