PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Er. Rochak Chauhan   Photo Frame   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example file
Class: Photo Frame
Generate picture frames of with custom text
Author: By
Last change:
Date: 17 years ago
Size: 378 bytes


Class file image Download

//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;

$photoFrame = new PhotoFrame($frameWidth, $frameHeight, $textArray);

'<img src="final.png" border="0" />';