Get string value of a variable

strval

(PHP 4, PHP 5)

strvalGet string value of a variable

Opis

string strval ( mixed $var )

Get the string value of a variable. See the documentation on string for more information on converting to string.

Parametry

var

The variable that is being converted to a string.

var may be any scalar type. You cannot use strval() on arrays or objects.

Zwracane wartości

The string value of var .

Przykłady

Example #1 strval() example using PHP5's magic __toString method

<?php
class StrValTest
{
    public function 
__toString()
    {
        return 
__CLASS__;
    }
}

// Prints 'StrValTest'
echo strval(new StrValTest);
?>


biżuteria | doradca podatki | projektowanie stron warszawa | biżuteria srebrna | projektowanie wnętrz | doradztwo w podatkach | pióra | wirtualne pl | implanty Warszawa | działki szczecin | zwiastuny filmów | słownik angielski | forum odchudzanie | sklepy ze strojami do tańca
Design by flankerds.com