Nursery Rhyme Code Poem [PHP]

<?php
class I {
public __construct()
{
$star = new Star();
$star->size = ‘little’;
$star->twinkle();
$star->twinkle();

self::wonder($star, ‘What are you?’);

$world = new World(…


This content originally appeared on Zach Leatherman and was authored by Zach Leatherman

<?php
class I {
    public __construct()
    {
        $star = new Star();
        $star->size = 'little';
        $star->twinkle();
        $star->twinkle();
 
        self::wonder($star, 'What are you?');
 
        $world = new World();
        $world->elevation = 'So High';
        $star->setAbove($world);
 
        $d = new Diamond();
        $d->position = 'In the sky';
        $star->setLike($d);
 
        $star->twinkle();
        $star->twinkle();
        $star->size; // returns 'little'
 
        self::wonder($star, 'What are you?');
    }
 
    public static function wonder($obj, $query)
    {
        $obj->query($query);
    }
}

The above code poem is released under the BSD license. To use in production environment without error, please precede with the following command: error_reporting(0); Obviously I’m kidding, don’t use this code. Not even for enterprise software.


This content originally appeared on Zach Leatherman and was authored by Zach Leatherman


Print Share Comment Cite Upload Translate
APA
Zach Leatherman | Sciencx (2023-01-29T06:42:05+00:00) » Nursery Rhyme Code Poem [PHP]. Retrieved from https://www.scien.cx/2007/10/26/nursery-rhyme-code-poem-php/.
MLA
" » Nursery Rhyme Code Poem [PHP]." Zach Leatherman | Sciencx - Friday October 26, 2007, https://www.scien.cx/2007/10/26/nursery-rhyme-code-poem-php/
HARVARD
Zach Leatherman | Sciencx Friday October 26, 2007 » Nursery Rhyme Code Poem [PHP]., viewed 2023-01-29T06:42:05+00:00,<https://www.scien.cx/2007/10/26/nursery-rhyme-code-poem-php/>
VANCOUVER
Zach Leatherman | Sciencx - » Nursery Rhyme Code Poem [PHP]. [Internet]. [Accessed 2023-01-29T06:42:05+00:00]. Available from: https://www.scien.cx/2007/10/26/nursery-rhyme-code-poem-php/
CHICAGO
" » Nursery Rhyme Code Poem [PHP]." Zach Leatherman | Sciencx - Accessed 2023-01-29T06:42:05+00:00. https://www.scien.cx/2007/10/26/nursery-rhyme-code-poem-php/
IEEE
" » Nursery Rhyme Code Poem [PHP]." Zach Leatherman | Sciencx [Online]. Available: https://www.scien.cx/2007/10/26/nursery-rhyme-code-poem-php/. [Accessed: 2023-01-29T06:42:05+00:00]
rf:citation
» Nursery Rhyme Code Poem [PHP] | Zach Leatherman | Sciencx | https://www.scien.cx/2007/10/26/nursery-rhyme-code-poem-php/ | 2023-01-29T06:42:05+00:00
https://github.com/addpipe/simple-recorderjs-demo