Αποτελέσματα Αναζήτησης
This PHP cheat sheet is both an introduction for beginners and a quick reference guide for advanced programmers. Bookmark it or download the free PDF now.
The strcmp() function compares two strings. Note: The strcmp() function is binary-safe and case-sensitive. Tip: This function is similar to the strncmp() function, with the difference that you can specify the number of characters from each string to be used in the comparison with strncmp().
Built-in functions for various tasks, such as string manipulation, array handling, file operations etc.. It's used for retrieving data from URL parameters (query string). Used for retrieving data from form submissions via HTTP POST method. A general-purpose array that combines $_GET, $_POST, and $_COOKIE. They can be accessed from any scope.
strcmp() will return NULL on failure. This has the side effect of equating to a match when using an equals comparison (==). Instead, you may wish to test matches using the identical comparison (===), which should not catch a NULL return. Example.
This is a multi-line string in NOWDOC syntax (without interpolation). foo(b: 'World!', a: 'Hello, '); // Hello, World! echo $value; echo $i++; case Hearts; case Diamonds; case Clubs; case Spades; case Hearts = '♥'; case Diamonds = '♦'; case Clubs = '♣'; case Spades = '♠'; } echo "a is greater than b"; echo "a is equal to b";
19 Οκτ 2011 · PHP Regular Expres s ions Functions ereg (pattern, str) split (pattern, str) ereg_replace (pattern, replace, str) preg_grep (pattern, arr) preg_match (pattern, str) preg_match_all (pattern, str, arr) preg_replace (pattern, replace, str) preg_split (pattern, str) Regular Expres sions Syntax ^ Start of string $ End of string. Any single character
time(); // Current Unix Timestamp date(); // Formats Date/Time strtotime(); // Parses to Timestamp include(""); require(""); mail(to,subject,message); if (condition) { action } elseif (condition) { action } else { action } switch (1st half of condition) { case "2nd half of condition": action break; default: action break; }