Location: PHPKode > scripts > Photo Frame > photo-frame/example.php
<?php

//Initialize all the variables needed.
$textArray = array("Hello", "This is a sample text", "Hi there", "Created by Rochak Chauhan", "PHP is Simple", "Keep it simple");
$frameWidth = 500;
$frameHeight = 400;

require_once("PhotoFrame.inc.php");
$photoFrame = new PhotoFrame($frameWidth, $frameHeight, $textArray);

echo '<img src="final.png" border="0" />';
?>
Return current item: Photo Frame