Smart Tools
Blog博客
Theme
ค้นหาเครื่องมือ
User login
Remove spaces or characters
function (math.) full solution (a math problem)
trim Remove spaces or other predefined characters from both ends of a string
rtrim Remove spaces or other predefined characters from the right side of the string
chop Alias for rtrim()chop() differs from Perl's chop() function in that it removes the last character of the string.
ltrim Remove spaces or other predefined characters from the left side of the string
String generation and conversion
function (math.) full solution (a math problem)
str_pad Fill the string with another string of the specified length
str_split Converting strings to arrays
strrev invert the string (computing)
wordwrap Break a string to a specified number of words
str_shuffle Randomly scramble a string
parse_str Parsing strings into variables
number_format Formatting Strings by Thousand Bit Grouping
String Case Conversion
function (math.) full solution (a math problem)
strtolower Convert strings to lowercase
strtoupper/td> Convert strings to uppercase
ucfirst Convert the first letter of a string to uppercase
lcfirst Convert the first letter of a string to lowercase
ucwords Convert the first letter of each word in a string to uppercase
html tag association
function (math.) full solution (a math problem)
htmlentities Convert characters to HTML entities
htmlspecialchars Predefined strings to HTML encoding
nl2br Insert HTML line break tags before all new lines in the string \n转换为<br>标签
strip_tags Remove HTML and PHP tags from strings
addcslashes Using backslashes to escape characters in a string in C style
stripcslashes Dereferencing a string escaped using addcslashes()
addslashes Quoting strings with backslashes
stripslashes Remove escaped characters added by addslashes
quotemeta Backslashes before certain predefined strings in strings
chr Returns a character from a specified ASCII value
ord Returns the ASCII value of the first character of the string
string comparison
function (math.) full solution (a math problem)
strcasecmp Compare two strings case-insensitively
strcmp Compare two strings case-sensitively
strncmp Compare the first N characters of a string, case sensitive.
strncasecmp Compare the first N characters of a string, case insensitive.
strnatcmp Natural order method for comparing string lengths, case sensitive
strnatcasecmp Natural order method for comparing string lengths, not case-sensitive
String Find Replace
function (math.) full solution (a math problem)
str_replace String substitution operations, case-sensitive
str_ireplace String substitution operations, case insensitive
substr_count Counts the number of times a string, appears in another string
substr_replace Replace a string with another string.
similar_text Returns the number of identical characters in both strings
strrchr Returns a string from the last occurrence of a string in another string to the end of the string.
strstr Returns a string from the beginning to the end of a string in another string.
strchr alias of strstr, returns a string from the first occurrence of one string in another to the end.
stristr Returns a string from the beginning to the end of another string, case-insensitive.
strtr Convert certain characters in a string
strpos Finding the first position in a character where certain characters appear first
stripos Finds the first occurrence of certain characters in a character, not case sensitive
strrpos Finding the last occurrence of certain characters in a character
strripos Finds the last occurrence of certain characters in a character, not case sensitive
strspn Returns the length of the first time a string matches the mask.
strcspn Returns the length of the string that does not match the mask.
string stats
function (math.) full solution (a math problem)
str_word_count Counting the number of words in a string
strlen Counting string length
count_chars Counts the number of times all letters appear in a string (0..255)
string encoding
function (math.) full solution (a math problem)
md5 Calculates the MD5 hash of a string
hash Generate a hash code
Creating Arrays
function (math.) full solution (a math problem)
array Generate an array
array_combine Generate an array with one array value as the key name and the other array value as the value
range Creates and returns an array containing the specified range of elements
compact Creates an array of the variables carried by the parameter
array_fill Fill the generated array with the given values
Array merging and splitting
function (math.) full solution (a math problem)
array_chunk Splitting an Array into New Array Blocks
array_merge Combine two or more arrays into a single array
array_slice Takes a segment of values in an array based on a condition and returns it.
Comparison of arrays
function (math.) full solution (a math problem)
array_diff Returns an array of the difference between two arrays
array_intersect Returns an array of the intersection of two or more arrays.
Array Find Replace
function (math.) full solution (a math problem)
array_search Finding a key value in an array
array_splice Remove part of the array and replace it with other values
array_sum Returns the sum of all values in the array
in_array Searches for a specified value in an array, case sensitive.
array_key_exists Determines whether the specified key exists in an array.
array pointer operation
function (math.) full solution (a math problem)
key Returns the name of the key that the pointer inside the array is currently pointing to.
current Returns the current element of the array
next Moves the pointer to the current element to the next element position and returns the value of the current element
prev Moves the pointer to the current element to the previous element position and returns the value of the current element
end Points an internal pointer to the last element of the array and returns the value of that element (if successful)
reset Points an internal pointer to the first element of the array and returns the value of that element
list Assigning values to a set of variables using elements of an array
array_shift Deletes the first element of the array and returns the value of the deleted element
array_unshift Inserts one or more elements at the beginning of the array
array_push Presses one or more elements into the end of the array.
array_pop Delete the last element of the array
array key-value operation
function (math.) full solution (a math problem)
shuffle Break up the array and keep the key names
count Counts the number of cells in an array or the number of object attributes.
array_flip Returns an array of flipped keys and values.
array_keys Returns all the keys of an array as a single array.
array_values Returns all the values of the array as an array
array_reverse Returns an array with the elements in reverse order
array_count_values Counts the number of times all values in an array appear
array_rand Randomly select one or more elements from the array, note the key names
each Returns the current key/value pair in the array and moves the array pointer one step forward.
array_unique Remove duplicate values from an array
Array Sorting
function (math.) full solution (a math problem)
sort Sorting an array
rsort Reverse sorting of arrays
asort Sorting arrays and maintaining index relationships
arsort Reverse sorting of arrays and maintaining index relationships
ksort Sort the array by key name
krsort Sorting an array in reverse order by key name
natsort Sorting arrays using the "natural sort" algorithm
natcasesort Sorting arrays using the "natural sort" algorithm without distinguishing upper and lower case letters
Math related
function (math.) full solution (a math problem)
abs Find the absolute value
ceil rounding up to the nearest integer
floor rounding
fmod Returns the floating-point remainder of a division
pow Returns the Nth power of a number
round rounding of floating-point numbers
sqrt square root
max maximize
min find the minimum value
mt_rand Better Random Numbers
rand random number
pi Obtaining Pi
octdec Octal to decimal conversion
MySql Related Functions
function (math.) full solution (a math problem)
mysql_affected_rows Get the number of rows affected by the previous MySQL operation.
mysql_client_encoding Returns the name of the character set
mysql_close Closing a MySQL Connection
mysql_connect Open a connection to the MySQL server
mysql_create_db Create a new MySQL database
mysql_data_seek Moving pointers to internal results
mysql_db_name Obtaining results data
mysql_db_query Send a MySQL query
mysql_drop_db Discarding (Deleting) a MySQL Database
mysql_errno Returns the numeric code of the error message from the last MySQL operation.
mysql_error Returns the text error message generated by the last MySQL operation.
mysql_escape_string Escaping a string for use in mysql_query
mysql_fetch_array Get a row from the result set as an associative array, or a numeric array, or both.
mysql_fetch_assoc Get a row from the result set as an associative array
mysql_fetch_field Get the column information from the result set and return it as an object
mysql_fetch_lengths Get the length of each output in the result set
mysql_fetch_object Obtain a row from the result set as an object
mysql_fetch_row Get a row from the result set as an enumeration array
mysql_field_flags Get the flag associated with the specified field from the result
mysql_field_len Returns the length of the specified field
mysql_field_name Get the field name of the specified field in the result
mysql_field_seek Set the pointer in the result set to the developed field offset
mysql_field_table Get the name of the table where the specified field is located
mysql_field_type Get the type of the specified field in the result set
mysql_free_result Freeing the resultant memory
mysql_get_client_info Getting MySQL Client Information
mysql_get_host_info Getting MySQL Host Information
mysql_get_proto_info Getting MySQL Protocol Information
mysql_get_server_info Getting MySQL Server Information
mysql_info Get information about the most recent query
mysql_insert_id Get the ID generated by the previous INSERT operation.
mysql_list_dbs List All Databases in MySQL Server
mysql_list_fields Listing Fields in MySQL Results
mysql_list_processes List MySQL processes
mysql_list_tables Listing Tables in a MySQL Database
mysql_num_fields Get the number of fields in the result set
mysql_num_rows Get the number of rows in the result set
mysql_pconnect Open a Persistent Connection to the MySQL Server
mysql_ping Ping a server connection and reconnect if there is no connection
mysql_query Send a MySQL query
mysql_real_escape_string Escape special characters in strings used in SQL statements, taking into account the current character set of the connection
mysql_result Obtaining results data
mysql_select_db Selecting a MySQL Database
mysql_set_charset Sets the client character set
mysql_stat Get current system status
mysql_tablename Get table name
mysql_thread_id Returns the ID of the current thread
mysql_unbuffered_query Sends a SQL query to MySQL and does not fetch and cache the resulting rows
File Catalog Related
function (math.) full solution (a math problem)
basename Returns the filename portion of the path
chgrp Changing the group to which a file belongs
chmod Change of document mode
chown Changing the owner of a file
clearstatcache Clearing the file state cache
copy copy file
delete See also unlink or unset
dirname Returns the directory portion of the path
disk_free_space Returns the free space in the directory
disk_total_space Returns the total disk size of a directory
diskfreespace Alias for disk_free_space
fclose Close an open file pointer
feof Tests if the file pointer has reached the end of the file position
fflush Output buffer contents to file
fgetc Read characters from a file pointer
fgetcsv Reads a line from the file pointer and parses the CSV field
fgets Read a line from a file pointer
fgetss Reads a line from the file pointer and filters out the HTML tags.
file_exists Checking for the existence of a file or directory
file_get_contents Reads the entire file into a string
file_put_contents Write a string to a file
file Read the entire file into an array
fileatime Obtain the last access time of the document
filectime Get the inode modification time of a file
filegroup Groups to obtain documents
fileinode Get the inode of the file
filemtime Obtain document modification time
fileowner Get the owner of the file
fileperms Obtaining file permissions
filesize Get the file size
filetype Get document type
flock Lightweight consulting document locking
fnmatch Matching filenames with patterns
fopen Open a file or URL
fpassthru Outputs all remaining data at the file pointer
fputcsv Format rows to CSV and write to file pointer
fputs Alias for fwrite
fread Reading files (safe to use for binary files)
fscanf Formatting input from a file
fseek Locate in the file pointer
fstat Getting file information from an open file pointer
ftell Returns the file pointer read/write position
ftruncate Truncate a file to a given length
fwrite Write to file (safe for binary files)
glob Find the file path that matches the pattern
is_dir Determines whether a given filename is a directory
is_executable Determines whether a given filename is executable
is_file Determine if the given filename is a normal file
is_link Determines whether a given filename is a symbolic link.
is_readable Determines whether a given filename is readable
is_uploaded_file Determines if a file was uploaded via HTTP POST.
is_writable Determines whether a given filename is writable
is_writeable Alias for is_writable
lchgrp Changes group ownership of symlink
lchown Changes user ownership of symlink
link Create a hard connection
linkinfo Getting information about a connection
lstat Give information about a file or symbolic link
md5_file Compute the MD5 hash of the file
mkdir New Catalog
move_uploaded_file Moving uploaded files to a new location
parse_ini_file Parsing a configuration file
parse_ini_string Parse a configuration string
pathinfo Returns information about the path to the file
pclose Close process file pointer
popen Open process file pointer
readfile Exporting a file
realpath_cache_get Get realpath cache entries
realpath_cache_size Get realpath cache size
realpath Returns normalized absolute path names
rename Rename a file or directory
rewind Reverse the position of the file pointer
rmdir Delete Catalog
set_file_buffer Alias for stream_set_write_buffer
stat Give information about the file
tempnam Create a file with a unique file name
tmpfile Create a temporary file
touch Setting access and modification times for documents
umask Change the current umask
GD/Image Functions
function (math.) full solution (a math problem)
gd_info Get information about the currently installed GD libraries
getimagesize Get image size
getimagesizefromstring Get the size of an image from a string
image_type_to_extension Get the file suffix of the image type
image_type_to_mime_type 取得 getimagesize,exif_read_data,exif_thumbnail,exif_imagetype 所返回的图像类型的 MIME 类型
image2wbmp Export images to a browser or file in WBMP format
imagealphablending Setting the color mixing mode of an image
imageantialias Whether or not to use antialias function
imagearc draw an elliptical arc
imagechar Draw a character horizontally
imagecharup Draw a character vertically
imagecolorallocate Assigning colors to an image
imagecolorallocatealpha Assign color + alpha to an image
imagecolorat Get the color index value of a pixel
imagecolorclosest Get the index value of the color closest to the specified color.
imagecolorclosestalpha Get the color closest to the specified color plus transparency.
imagecolorclosesthwb Get the index of the black and white of the chroma closest to the given color
imagecolordeallocate Unassigning image colors
imagecolorexact Get the index value of the specified color
imagecolorexactalpha Get the index value of the specified color plus transparency
imagecolormatch Match the palette version of an image more closely to the true-color version.
imagecolorresolve Obtains the index value of the specified color or the closest possible alternative value.
imagecolorresolvealpha Get the index value of the specified color + alpha or the closest possible alternative.
imagecolorset Sets the color for the specified palette index
imagecolorsforindex Get the color of an index
imagecolorstotal Get the number of colors in an image's palette.
imagecolortransparent Define a color as transparent
imageconvolution Apply a 3x3 convolution matrix with coefficients div and offset.
imagecopy Copying part of an image
imagecopymerge Copy and merge parts of an image
imagecopymergegray Copy and merge parts of an image in grayscale
imagecopyresampled Resampling copies part of the image and resizing it
imagecopyresized Copy part of the image and resize it
imagecreate Create a new palette-based image
imagecreatefromgd2 Creating a new image from a GD2 file or URL
imagecreatefromgd2part Create a new image from a given GD2 file or part of a URL.
imagecreatefromgd Creating a new image from a GD file or URL
imagecreatefromgif Creating a new image from a file or URL
imagecreatefromjpeg Creating a new image from a file or URL
imagecreatefrompng Creating a new image from a file or URL
imagecreatefromstring Create a new image from the image stream in the string
imagecreatefromwbmp Creating a new image from a file or URL
imagecreatefromxbm Creating a new image from a file or URL
imagecreatefromxpm Creating a new image from a file or URL
imagecreatetruecolor Create a new true color image
imagedashedline Draw a dotted line
imagedestroy Destruction of an image
imageellipse Draw an ellipse
imagefill area fill
imagefilledarc Draw an elliptical arc and fill it
imagefilledellipse Draw an ellipse and fill it
imagefilledpolygon Draw a polygon and fill it
imagefilledrectangle Draw a rectangle and fill it
imagefilltoborder The area is filled until the border of the specified color
imagefilter Applying filters to images
imagefontheight Get the height of the font
imagefontwidth Get the width of the font
imageftbbox Gives a text box using the FreeType 2 font
imagefttext Writing text to images using FreeType 2 fonts
imagegammacorrect Apply gamma correction to GD images
imagegd2 Export GD2 images to a browser or file
imagegd Export GD images to a browser or file
imagegif Export images to a browser or file
imagegrabscreen Captures the whole screen
imagegrabwindow Captures a window
imageinterlace Enable or disable interlacing
imageistruecolor Check if the image is a true color image
imagejpeg Export images to a browser or file
imagelayereffect Setting the alpha color mixing flag to use the bound libgd layering effect
imageline Draw a line segment
imageloadfont Load a new font
imagepalettecopy Copying color palettes from one image to another
imagepng Export images to a browser or file in PNG format
imagepolygon Draw a polygon
imagepsbbox Gives a text box using PostScript Type1 fonts
imagepsencodefont Change the character encoding vector in the font
imagepsextendfont Expand or streamline fonts
imagepsfreefont Freeing the memory occupied by a PostScript Type 1 font
imagepsloadfont Load a PostScript Type 1 font from a file
imagepsslantfont Tilt a font
imagepstext Drawing text strings on images with PostScript Type1 fonts
imagerectangle Draw a rectangle
imagerotate Rotate the image with a given angle
imagesavealpha Set the flag to preserve full alpha channel information when saving PNG images (as opposed to a single transparent color)
imagesetbrush Setting the brush image for drawing lines
imagesetpixel Drawing a single pixel
imagesetstyle Setting the style of line drawing
imagesetthickness Setting the width of the line
imagesettile Setting the texture used for filling
imagestring Horizontally draw a line of string
imagestringup Draw a line of string vertically
imagesx Get the width of the image
imagesy Get image height
imagetruecolortopalette Converting True Color Images to Palette Images
imagettfbbox Get the range of text that uses TrueType fonts
imagettftext Writing text to an image with TrueType fonts
imagetypes Returns the image types supported by the current PHP version
imagewbmp Export images to a browser or file in WBMP format
imagexbm Export XBM images to a browser or file
iptcembed Embedding binary IPTC data into a JPEG image
iptcparse Parses binary IPTC http://www.iptc.org/ blocks into individual tokens
jpeg2wbmp Convert JPEG image files to WBMP image files
png2wbmp Convert PNG image files to WBMP image files
session function
function (math.) full solution (a math problem)
session_cache_expire Returns the current cache expiration
session_cache_limiter get and set the current cache limit/gold
session_commit Alias for session_write_close
session_decode Streams session data from a session-encoded string
session_destroy Destroy all data registered to the session
session_encode Encodes the current session data into a string.
session_id Get and/or set the current session identifier
session_is_registered Check if the variable is registered in the session
session_module_name Get and/or set the current session module
session_name Get and/or set the current session name
session_regenerate_id Update the newly generated session identifier
session_register_shutdown session shutdown feature
session_register Registering one or more global variables with the current session
session_save_path Get and/or set the current session save path
session_set_save_handler Setting up user-level session storage
session_start Starting a new or resuming an existing session
session_status Returns the current session status
session_unregister Logout a global variable of the current session.
session_unset Free all session variables
session_write_close Write session data and end session
cookie function
function (math.) full solution (a math problem)
setcookie() Setting cookies
setrawcookie Sending cookies without URL encoding
Time-Date Functions
function (math.) full solution (a math problem)
checkdate Validating a Gregorian date
date_add Alias DateTime::add
date_create_from_format Alias DateTime::createFromFormat
date_create Alias DateTime::__construct
date_date_set Alias DateTime::setDate
date_default_timezone_get Get the default time zone used by all datetime functions in a script.
date_default_timezone_set Sets the default time zone to be used for all datetime functions in a script.
date_diff Alias DateTime::diff
date_format Alias DateTime::format
date_get_last_errors Alias DateTime::getLastErrors
date_interval_create_from_date_string Alias DateInterval::createFromDateString
date_interval_format Alias DateInterval::format
date_isodate_set Alias DateTime::setISODate
date_modify Alias DateTime::modify
date_offset_get Alias DateTime::getOffset
date_parse_from_format Get info about given date formatted according to the specified format
date_parse Returns associative array with detailed info about given date
date_sub Alias DateTime::sub
date_sun_info Returns an array with information about sunset/sunrise and twilight begin/end
date_sunrise Returns the sunrise time for the given date and location
date_sunset Returns the sunset time for the given date and location
date_time_set Alias DateTime::setTime
date_timestamp_get Alias DateTime::getTimestamp
date_timestamp_set Alias DateTime::setTimestamp
date_timezone_get Alias DateTime::getTimezone
date_timezone_set Alias DateTime::setTimezone
date Formatting a local time/date
getdate Obtaining date/time information
gettimeofday Get the current time
gmdate Formatting a GMT/UTC Date/Time
gmmktime Get UNIX timestamps for GMT dates
gmstrftime Format GMT/UTC time/date according to regional settings
idate Format local time and date as an integer
localtime obtain local time
microtime Returns the current Unix timestamp and microseconds
mktime Get the Unix timestamp of a date
strftime Format local time/date according to regional settings
strptime Parses the date/time generated by strftime.
strtotime Parses the datetime description of any English text into a Unix timestamp
time Returns the current Unix timestamp
timezone_abbreviations_list Alias DateTimeZone::listAbbreviations
timezone_identifiers_list Alias DateTimeZone::listIdentifiers
timezone_location_get Alias DateTimeZone::getLocation
timezone_name_from_abbr Returns the timezone name from abbreviation
timezone_name_get Alias DateTimeZone::getName
timezone_offset_get Alias DateTimeZone::getOffset
timezone_open Alias DateTimeZone::__construct
timezone_transitions_get Alias DateTimeZone::getTransitions
timezone_version_get Gets the version of the timezonedb
การแนะนำการเขียนโปรแกรม PHP:

1. PHP: ภาษาสคริปต์ฝั่งเซิร์ฟเวอร์แบบโอเพนซอร์ส ที่เหมาะอย่างยิ่งสำหรับการพัฒนาเว็บ สามารถฝังอยู่ใน HTML ได้

2. PHP เป็นหนึ่งในภาษาสคริปต์ฝั่งเซิร์ฟเวอร์ที่เก่าแก่ที่สุด; ตั้งแต่ถูกสร้างขึ้นโดย Rasmus Lerdorf ในปี 1995 มันได้กลายเป็นหนึ่งในภาษาโปรแกรมที่ได้รับความนิยมมากที่สุดทั่วโลก

3. PHP มีฟังก์ชันในตัวมากมายครอบคลุมทุกอย่างตั้งแต่การจัดการสตริงไปจนถึงการดำเนินการระบบไฟล์ การโต้ตอบกับฐานข้อมูล และการสื่อสารเครือข่าย

4. ความชำนาญในฟังก์ชันที่มีอยู่ในตัวของ PHP ช่วยให้ผู้พัฒนาสามารถเริ่มต้นการเขียนโปรแกรม PHP ได้อย่างรวดเร็ว พร้อมทั้งช่วยประหยัดเวลาและค่าใช้จ่ายในการพัฒนาได้อย่างมีนัยสำคัญ

Recommended Tools
หน้าแรก ค้นหาเครื่องมือ รายการโปรด ภาษา