MIOLO25
Carregando...
Procurando...
Nenhuma entrada encontrada
Referência à classe JSON

Membros públicos

 stringify ($arg)
 
 parse ($text)
 
 error ($m)
 
 next ()
 
 white ()
 
 str ()
 
 arr ()
 
 obj ()
 
 assoc ()
 
 num ()
 
 word ()
 
 val ()
 

Campos de Dados

 $at = 0
 
 $ch = ' '
 
 $text = ''
 

Descrição detalhada

a JSON parser / generator

@access public

Autor
Dominique Stender dst@d.nosp@m.mc.d.nosp@m.e
Versão
1.0.1

Documentação das funções

◆ arr()

arr ( )

handless arrays

@access private

Retorna
void

◆ assoc()

assoc ( )

handles objects

@access public

Retorna
void

◆ error()

error ( $m)

triggers a PHP_ERROR

@access private

Parâmetros
string$merror message
Retorna
void

◆ next()

next ( )

returns the next character of a JSON string

@access private

Retorna
string

◆ num()

num ( )

handles numbers

@access private

Retorna
void

◆ obj()

obj ( )

handles objects

@access public

Retorna
void

◆ parse()

parse ( $text)

parses the given string into a PHP data structure

Parâmetros
string$textJSON data representation @access public
Retorna
mixed

◆ str()

str ( )

handles strings

@access private

Retorna
void

◆ stringify()

stringify ( $arg)

takes an arbitrary PHP data structure and generates a valid JSON representation from it

Parâmetros
mixed$argan arbitrary PHP data structure @access public
Retorna
string
Versão
1.0.1 fixed tests whether $s has content by using strlen(). this enables the user to use 0 as very first character

◆ val()

val ( )

generic value handler

@access private

Retorna
mixed

◆ white()

white ( )

handles whitespace and comments

@access private

Retorna
void

◆ word()

word ( )

handles words

@access private

Retorna
mixed

Documentação dos campos e atributos

◆ $at

integer $at = 0

line counter

@access private

◆ $ch

string $ch = ' '

@access private

◆ $text

string $text = ''

JSON representation

@access private


A documentação para esta classe foi gerada a partir do seguinte ficheiro: