PHPの組み込み関数についてのリファレンス。
組み込み関数とは、あらかじめ定義されている関数のこと。PHPには、数多くの組み込み関数が用意されている。
文字列
- addcslashes( string $str, string $charlist )
- addslashes( string $str )
- chop( string $str[, string $charlist] )
- chr( int $ascii )
- chunk_split( string $body[, int $chunklen[, string $end]] )
- echo( string $arg1 [, string $… ] )
- echo( string $arg1 [, string $… ] )の短縮構文
- explode( string $delimiter, string $string[, int $limit] )
- fprintf( resource $handle, string $format[, mixed $args[, mixed $… ]] )
- htmlentities( string $string[, int $flags[, string $encoding[, bool $double_encode]]] )
- htmlspecialchars( string $string[, int $flags[, string $encoding[, bool $double_encode]]] )
- htmlspecialchars_decode( string $string[, int $flags] )
- html_entity_decode( string $string[, int $flags[, string $encoding]] )
- implode( string $glue, array $pieces )
- join( string $glue, array $pieces )
- lcfirst( string $str )
- localeconv()
- ltrim( string $str[, string $charlist] )
- money_format( string $format, float $number )
- nl2br( string $string[, bool $is_xhtml] )
- number_format( float $number[, int $decimals[, string $dec_point, string $thousands_sep]] )
- ord( string $string )
- parse_str( string $str[, array &$arr] )
- print( string $arg )
- printf( string $format[, mixed $args[, mixed $… ]] )
- quotemeta( string $str )
- rtrim( string $str[, string $charlist] )
- sprintf( string $format[, mixed $args[, mixed $… ]] )
- sscanf( string $str, string $format[, mixed &$… ] )
- strcasecmp( string $str1, string $str2 )
- strchr( string $haystack, mixed $needle[, bool $before_needle] )
- strcmp( string $str1, string $str2 )
- stripcslashes( string $str )
- stripos( string $haystack, string $needle[, int $offset] )
- stripslashes( string $str )
- strip_tags( string $str[, string $allowable_tags] )
- stristr( string $haystack, mixed $needle[, bool $before_needle] )
- strlen( string $string )
- strnatcasecmp( string $str1, string $str2 )
- strnatcmp( string $str1, string $str2 )
- strncasecmp( string $str1, string $str2, int $len )
- strncmp( string $str1, string $str2, int $len )
- strpbrk( string $haystack, string $char_list )
- strpos( string $haystack, mixed $needle[, int $offset] )
- strrchr( string $haystack, mixed $needle )
- strrev( string $string )
- strripos( string $haystack, string $needle[, int $offset] )
- strrpos( string $haystack, string $needle[, int $offset] )
- strstr( string $haystack, mixed $needle[, bool $before_needle] )
- strtok( string $str, string $token )
- strtolower( string $string )
- strtoupper( string $string )
- strtr( string $str, array $replace_pairs )
- strtr( string $str, string $from, string $to )
- str_ireplace( mixed $search, mixed $replace, mixed $subject[, int &$count] )
- str_pad( string $input, int $pad_length[, string $pad_string[, int $pad_type]] )
- str_repeat( string $input, int $multiplier )
- str_replace( mixed $search, mixed $replace, mixed $subject[, int &$count] )
- str_shuffle( string $str )
- str_split( string $string[, int $split_length] )
- substr( string $string, int $start[, int $length ] )
- substr_replace( array $array, mixed $replacement, mixed $start[, mixed $length ] )
- substr_replace( string $string, mixed $replacement, mixed $start[, mixed $length ] )
- trim( string $str[, string $charlist] )
- ucfirst( string $str )
- ucwords( string $str )
- vfprintf( resource $handle, string $format, array $args )
- vprintf( string $format, array $args )
- vsprintf( string $format, array $args )
- wordwrap( string $str[, int $width[, string $break[, bool $cut]]] )
変数操作
- debug_zval_dump( mixed $variable )
- doubleval( mixed $var )
- empty( mixed $var )
- floatval( mixed $var )
- gettype( mixed $var )
- get_defined_vars()
- get_resource_type( resource $handle )
- intval( mixed $var[, int $base] )
- isset( mixed $var[, mixed $… ] )
- is_array( mixed $var )
- is_bool( mixed $var )
- is_callable( callable $name[, bool $syntax_only[, string &$callable_name]] )
- is_double( mixed $var )
- is_float( mixed $var )
- is_int( mixed $var )
- is_integer( mixed $var )
- is_long( mixed $var )
- is_null( mixed $var )
- is_numeric( mixed $var )
- is_object( mixed $var )
- is_real( mixed $var )
- is_resource( mixed $var )
- is_scalar( mixed $var )
- is_string( mixed $var )
- print_r( mixed $expression[, bool $return] )
- serialize( mixed $value )
- settype( mixed &$var, string $type )
- strval( mixed $var )
- unserialize( string $str )
- unset( mixed $var[, mixed $… ] )
- var_dump( mixed $expression[, mixed $… ] )
- var_export( mixed $expression[, bool $return] )
配列
- array()
- array_change_key_case()
- array_chunk()
- array_combine()
- array_count_values()
- array_diff()
- array_diff_assoc()
- array_diff_key()
- array_diff_uassoc()
- array_diff_ukey()
- array_fill()
- array_fill_keys()
- array_filter()
- array_flip()
- array_intersect()
- array_intersect_assoc()
- array_intersect_key()
- array_intersect_uassoc()
- array_intersect_ukey()
- array_keys()
- array_key_exists()
- array_map()
- array_merge()
- array_merge_recursive()
- array_multisort()
- array_pad()
- array_pop()
- array_product()
- array_push()
- array_rand()
- array_reduce()
- array_reverse()
- array_search()
- array_shift()
- array_slice()
- array_splice()
- array_sum()
- array_udiff()
- array_udiff_assoc()
- array_udiff_uassoc()
- array_uintersect()
- array_uintersect_assoc()
- array_uintersect_uassoc()
- array_unique()
- array_unshift()
- array_values()
- array_walk()
- array_walk_recursive()
- arsort()
- asort()
- compact()
- count()
- current()
- each()
- end()
- explode( string $delimiter, string $string[, int $limit] )
- extract()
- implode( string $glue, array $pieces )
- in_array()
- is_array( mixed $var )
- join( string $glue, array $pieces )
- key()
- krsort()
- ksort()
- list()
- natcasesort()
- natsort()
- next()
- pos()
- prev()
- range()
- reset()
- rsort()
- shuffle()
- sizeof()
- sort()
- str_ireplace( mixed $search, mixed $replace, mixed $subject[, int &$count] )
- str_replace( mixed $search, mixed $replace, mixed $subject[, int &$count] )
- str_split( string $string[, int $split_length] )
- substr_replace( array $array, mixed $replacement, mixed $start[, mixed $length ] )
- uasort()
- uksort()
- usort()