phpDocumentor php-lang
[ class tree: php-lang ] [ index: php-lang ] [ all elements ]

Class: String

Source Location: /php/lang/String.php

Class String

Class Overview

¹®ÀÚ¿­ À¯Æ¿¸®Æ¼ Ŭ·¡½º

¸ÅĪÅ×À̺í

 String ¸Þ¼Òµå		=>	¹®ÀÚ¿­ÇÔ¼ö
 addcslashes	=>	addcslashes
 addslashes		=>	addslashes
 bin2hex		=>	bin2hex
 chop			=>	chop
 chr		=>	chr
 count_chars		=>	count_chars
 entity_encode		=>	htmlentities
 entity_decode		=>	html_entity_decode
 explode		=>	explode
 implode		=>	implode
 join		=> join
 ltrim		=>	ltrim
 md5		=>	md5
 nl2br		=>	nl2br
 ord		=>	ord
 parse		=>	parse_str
 print		=>	print
 printf		=>	printf
 rtrim		=>	rtrim
 similar		=>	similar_text
 soundex		=>	soundex
 sprintf		=>	sprintf
 sscanf		=>	sscanf
 ireplace		=>	str_ireplace
 pad		=>	str_pad
 repeat		=>	str_repeat
 replace		=>	str_replace
 rot13		=>	str_rot13
 shuffle		=>	str_shuffle
 count_split		=>	str_split
 word_count		=>	str_word_count
 casecmp		=>	strcasecmp
 cmp		=>	strcmp
 coll		=>	strcoll
 strip		=>	strip_tags
 stripcslashes		=>	stripcslashes
 ipos		=>	stripos
 stripslashes		=>	stripslashes
 istr		=>	stristr
 len		=>	strlen
 natcasecmp		=>	strnatcasecmp
 natcmp 		=>	strnatcmp
 ncasecmp 		=>	strncasecmp
 ncmp		=>	strncmp
 pbrk		=>	strpbrk
 pos		=>	strpos
 last_string		=>	strrchr
 reverse 		=>	strrev
 reverse_ipos		=>	strripos
 reverse_pos		=>	strrpos
 first_string		=>	strstr
 lower		=>	strtolower
 upper		=>	strtoupper
 translate 		=>	strtr
 sub_compare		=>	substr_compare
 sub_count 		=>	substr_count
 sub_replace		=>	substr_replace
 substring 		=>	substr
 trim		=>	trim
 ucfirst 		=>	ucfirst
 ucwords 		=>	ucwords
 wrap		=>	wordwrap
 iconv		=>	iconv
 base64_encode		=>	base64_encode
 base64_decode		=>	base64_decode
 build_query		=>	http_build_query
 parse_url		=>	parse_url
 rawencode		=>	rawurlencode
 rawdecode		=>	rawurldecode
 urlencode		=>	urlencode
 urldecode		=>	urldecode
 highlight		=>	highlight_string
 phpstrip		=>	php_strip_whitespace
 constant		=>	constant
 split		=>	split
 spliti		=>	spliti
 number		=>	number_format
 money		=>	money_format
 pmatch_all		=>	preg_match_all
 pmatch		=>	preg_match
 preg_qoute		=>	preg_qoute
 preplace_callback		=>	preg_replace_callback
 preplace		=>	preg_replace
 psplit		=>	preg_split

Located in /php/lang/String.php [line 107]

PObject
   |
   --String
Author(s):
Information Tags:
Version:  1.0

Methods

[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From PObject

PObject::__construct()
»ý¼ºÀÚ
PObject::display()
°´Ã¼ ¹®ÀÚ¿­À» Ãâ·Â
PObject::equals()
°´Ã¼ ºñ±³ (¼öÁ¤ ÇÊ¿ä)
PObject::getClass()
PObject::getObjValue()
°´Ã¼ÀÎÁö ¾Æ´ÑÁö ÆÇº°Çؼ­ PObject Çü °´Ã¼À̸é toString() ¸Þ¼Òµå·Î ¹®ÀÚ¿­À» ¹ÝȯÇϰí ÀÏ´Ü ÀÚ·áÇüÀÌ¸é ±× ÇüÅ ±×´ë·Î ¸®ÅÏÇÑ´Ù
PObject::isObject()
°´Ã¼ È®ÀÎ
PObject::toString()
°´Ã¼ ¹®ÀÚ¿­·Î º¯È¯
PObject::__toString()
magic methods Ãß°¡ , toString() ÀÇ °ªÀ» ±×´ë·Î ¸®ÅÏÇÑ´Ù.

[ Top ]
Constant Summary
POS_FIRST   ù¹øÂ° ¸Å°³º¯¼ö
POS_MAX   ¸¶Áö¸· ¸Å°³º¯¼ö
POS_SECOND   µÎ¹øÂ° ¸Å°³º¯¼ö
POS_THIRD   ¼¼¹øÂ° ¸Å°³º¯¼ö
POS_ZERO   ¸Å°³º¯¼ö·Î Àû¿ë ¾ÈÇÔ

[ Top ]
Method Summary
static string   cut()   ¹®ÀÚ¿­ ÀÚ¸£±â (¼öÁ¤ ÇÊ¿ä) php_mbstring.dll ·Îµå ÇÊ¿ä
static string   getEUCKR()   EUC-KR ÇüÅ·Π¹®ÀÚ¿­ º¯È¯ (php5´Â iconv ¸ðµâ ±âº» žÀç)
static string   getUTF8()   UTF-8 ÇüÅ·Π¹®ÀÚ¿­ º¯È¯ (php5´Â iconv ¸ðµâ ±âº» žÀç)
static array   matchTag()   ÅÂ±× ºñ±³, »ý¼º
static array   matchTagCallBack()   ÅÂ±× »ý¼º
static string   matchTagReplace()   ¹®ÀÚ¿­ º¯È¯
String   __construct()  
callback   getFunction()   ½ÇÁ¦ ½ÇÇàµÉ ÇÔ¼ö
int   getPos()   ¸Å°³º¯¼ö À§Ä¡ ¾ò±â
void   init()  
void   isFunction()  
String   r()   ÂüÁ¶°¡ ¾Æ´Ñ »óÅ ÇÔ¼ö¸¦ ¾µ ¶§ ÀÚµ¿À¸·Î ÂüÁ¶ÇüÅ·ΠÀüȯ
String   ref()   ÇöÀç ÂüÁ¶»óÅ Àüȯ
void   setFunctionList()   Àû¿ëµÉ ÇÔ¼ö ¼³Á¤
void   toString()  
String   __call()   string °ü·ÃÇÔ¼ö ÀÚµ¿½ÇÇà
void   __get()  

[ Top ]
Methods
static method cut  [line 316]

  static string cut( string $str, int $length, [string $subfix = "..."]  )

¹®ÀÚ¿­ ÀÚ¸£±â (¼öÁ¤ ÇÊ¿ä) php_mbstring.dll ·Îµå ÇÊ¿ä

Parameters:
string   $str:  ¹®ÀÚ¿­
int   $length:  ÀÚ¸£´Â ±æÀÌ
string   $subfix:  µÚ¿¡ ºÙÀ» ¹®ÀÚ¿­, ±âº»°ª "..."

API Tags:
Access:  public


[ Top ]
static method getEUCKR  [line 345]

  static string getEUCKR( string $str, [string $encoding = 'UTF-8']  )

EUC-KR ÇüÅ·Π¹®ÀÚ¿­ º¯È¯ (php5´Â iconv ¸ðµâ ±âº» žÀç)

Parameters:
string   $str:  º¯È¯µÉ ¹®ÀÚ¿­
string   $encoding:  ÀÌÀü ÀÎÄÚµù

API Tags:
Access:  public


[ Top ]
static method getUTF8  [line 332]

  static string getUTF8( string $str, [string $encoding = 'CP949']  )

UTF-8 ÇüÅ·Π¹®ÀÚ¿­ º¯È¯ (php5´Â iconv ¸ðµâ ±âº» žÀç)

Parameters:
string   $str:  º¯È¯µÉ ¹®ÀÚ¿­
string   $encoding:  ÀÌÀü ÀÎÄÚµù

API Tags:
Access:  public


[ Top ]
static method matchTag  [line 364]

  static array matchTag( string $tagName, string $subject, [boolean $isOne = true]  )

ÅÂ±× ºñ±³, »ý¼º

Parameters:
string   $tagName:  ÅÂ±× À̸§
string   $subject:  °Ë»öµÉ ¹®ÀÚ¿­
boolean   $isOne:  true : One ű×, false : Two ű×

API Tags:
Return:  tag : ÅÂ±× À̸§, body : ¸ÅĪ ¹®ÀÚ¿­, id : ¾ÆÀ̵ð, attribute : ¼Ó¼º, description : ³»¿ë, convert : º¯È¯ ³»¿ë
Access:  public


[ Top ]
static method matchTagCallBack  [line 431]

  static array matchTagCallBack( string $tagName, string $subject, boolean $isOne, callback $callback  )

ÅÂ±× »ý¼º

callback ÇÔ¼ö´Â ±âº»ÀûÀ¸·Î attribute, description À» ÀÌ¿ëÇØ¼­ convert¸¦ »ý¼ºÇÏ´Â ÇÔ¼öÀÌ´Ù. ±âº» ÇüÅ´Â

  1.   function callback_func(&$obj{
  2.         $obj['convert'str_replace("\n""<br>"$obj['description']);
  3.     }

callback ÇÔ¼ö°¡ Ŭ·¡½ºÀÇ ¸Þ¼Òµå¶ó¸é

  1.   class AAA {
  2.      function callback_func(&$obj{
  3.  
  4.         }
  5.     }
  6.  
  7.   $class new AAA;
  8.   array($class'callback_func');

ÇØ¼­ callback ÇÔ¼ö ºÎºÐ¿¡ ³Ö¾î ÁÖ¸é µÈ´Ù.

Parameters:
string   $tagName:  ÅÂ±× À̸§
string   $subject:  °Ë»öµÉ ¹®ÀÚ¿­
boolean   $isOne:  true : One ű×, false : Two ű×
callback   $callback:  callback ÇÔ¼ö

API Tags:
Return:  tag : ÅÂ±× À̸§, body : ¸ÅĪ ¹®ÀÚ¿­, id : ¾ÆÀ̵ð, attribute : ¼Ó¼º, description : ³»¿ë, convert : º¯È¯ ³»¿ë
Access:  public


[ Top ]
static method matchTagReplace  [line 454]

  static string matchTagReplace( string $tagName, string $subject, boolean $isOne, callback $callback  )

¹®ÀÚ¿­ º¯È¯

Parameters:
string   $tagName:  ÅÂ±× À̸§
string   $subject:  °Ë»öµÉ ¹®ÀÚ¿­
boolean   $isOne:  true : One ű×, false : Two ű×
callback   $callback:  callback ÇÔ¼ö

API Tags:
Return:  º¯È¯µÈ $subject
Access:  public


[ Top ]
Constructor __construct  [line 146]

  String __construct( [ $string = '']  )

Parameters:
   $string: 

API Tags:
Access:  public


Redefinition of:
PObject::__construct()
»ý¼ºÀÚ

[ Top ]
getFunction  [line 280]

  callback getFunction( string $method  )

½ÇÁ¦ ½ÇÇàµÉ ÇÔ¼ö

Parameters:
string   $method:  ½ÇÇàµÉ ÇÔ¼ö À̸§

API Tags:
Return:  ÄݹéÀ̸§
Access:  public


[ Top ]
getPos  [line 265]

  int getPos( string $method  )

¸Å°³º¯¼ö À§Ä¡ ¾ò±â

Parameters:
string   $method:  ½ÇÇàµÉ ÇÔ¼ö À̸§

API Tags:
Return:  ¸Å°³º¯¼ö À§Ä¡
Access:  public


[ Top ]
init  [line 153]

  void init( )


API Tags:
Access:  public


[ Top ]
isFunction  [line 212]

  void isFunction( $name  )

Parameters:
   $name: 

API Tags:
Access:  public


[ Top ]
r  [line 247]

  String r( )

ÂüÁ¶°¡ ¾Æ´Ñ »óÅ ÇÔ¼ö¸¦ ¾µ ¶§ ÀÚµ¿À¸·Î ÂüÁ¶ÇüÅ·ΠÀüȯ


API Tags:
See:  String::ref()
Access:  public


[ Top ]
ref  [line 235]

  String ref( [bool $is_ref = true]  )

ÇöÀç ÂüÁ¶»óÅ Àüȯ

Parameters:
bool   $is_ref:  ÂüÁ¶ »óÅÂ, trueÀÌ¸é ¹«Á¶°Ç ÂüÁ¶ Àû¿ë, ±âº»°ª true,

API Tags:
See:  String::r()
Access:  public


[ Top ]
setFunctionList  [line 208]

  void setFunctionList( string $name, string|array $run, int $pos  )

Àû¿ëµÉ ÇÔ¼ö ¼³Á¤

Parameters:
string   $name:  ÇÔ¼öÀ̸§
string|array   $run:  callback
int   $pos:  ¸Å°³º¯¼ö À§Ä¡

API Tags:
Access:  public


[ Top ]
toString  [line 482]

  void toString( )


API Tags:
Access:  public


Redefinition of:
PObject::toString()
°´Ã¼ ¹®ÀÚ¿­·Î º¯È¯

[ Top ]
__call  [line 167]

  String __call( $method, $args  )

string °ü·ÃÇÔ¼ö ÀÚµ¿½ÇÇà

Parameters:
   $method: 
   $args: 

API Tags:
Access:  public


[ Top ]
__get  [line 216]

  void __get( $key  )

Parameters:
   $key: 

API Tags:
Access:  public


[ Top ]
Constants
POS_FIRST = 0 [line 125]

ù¹øÂ° ¸Å°³º¯¼ö


[ Top ]
POS_MAX = 1000 [line 140]

¸¶Áö¸· ¸Å°³º¯¼ö


[ Top ]
POS_SECOND = 1 [line 130]

µÎ¹øÂ° ¸Å°³º¯¼ö


[ Top ]
POS_THIRD = 2 [line 135]

¼¼¹øÂ° ¸Å°³º¯¼ö


[ Top ]
POS_ZERO = -1 [line 120]

¸Å°³º¯¼ö·Î Àû¿ë ¾ÈÇÔ


[ Top ]

Documentation generated on Wed, 09 Dec 2009 10:48:43 +0900 by phpDocumentor 1.4.3