Tworzenie stron WWW to podstawa pracy webmastera. Dlatego każdy webmaster ma swój Poradnik Webmastera, z którego korzysta gdy potrzebuje wiedzy o języku HTML, CSS albo szuka czegoś w kursie JavaScript. Dzięki tak potężniej dawce wiedzy może on tworzyć profesjonalnie wyglądające strony WWW.

Oficjalna strona HUBA & iTV! - Akcesoria łazienkowe - wizualizacje - Cięcie plazmą - pozycjonowanie kraków - oprogramowanie - Noni - motobiznes - Perfumy - ZUS - biżuteria swarovski - EBOOKI, EKSIĄŻKI, AUDIOBOOKI - programy multimedialne - Ogłoszenia zwierzęta - wizualizacje
Podręcznik PEAR
PoprzedniRozdział 41. GtkNastępny

Gtk_VarDump

Provides a simple GUI to examine PHP variables, for example complex arrays or objects.

The GUI consists of two parts: a tree on the left side, displaying the values/objects/arrays that have subkeys/subvalues, and a list with scalar key-value pairs on the right side.

To use it, just include Gtk/VarDump.php and call the constructor with the variable to be dumped.

Przykład 41-7. Inspecting a variable with Gtk_VarDump

<?php
//some test class to dump
class Test
{
    var $color  = 'blue';
    var $foo    = 'bar';
    var $self   = null;
    var $server = null;

    function Test()
    {
        $this->self   =& $this;
        $this->server =& $_SERVER;
    }

    function doNothing()
    {
        //we're doing nothing here
    }
}

//include & display the variable
require_once 'Gtk/VarDump.php';
new Gtk_VarDump(new Test());
?>

PoprzedniSpis treściNastępny
Gtk_ScrollingLabel::unPausePoczątek rozdziałuGtk2

Copyright © 2007 Office. Designed by Free CSS Templates.