<< < 7 8 9 10 11 12 13 >   Sort: Rank

Downloading and Installing PHP
Where to find tutorials in downloading and installing PHP binary version for Windows system. Here is a list of tutorials to answer many frequently asked questions compiled by FYIcenter.com team in downloading and installing PHP binary version for Windows system. Installing PHP for Windows Verifying ...
2016-10-13, 265👍, 0💬

Installing PHP for Windows
How To Download and Install PHP for Windows? The best way to download and install PHP on Windows systems is to: Go to http://www.php.net, which is the official Web site for PHP. Download PHP binary version for Windows in ZIP format. Unzip the downloaded file into a directory. You are done. No need t...
2016-10-13, 263👍, 0💬

PHP Configuration Setting File
Where Are PHP Configuration Settings Stored? PHP stores configuration settings in a file called php.ini in PHP home directory. You can open it with any text editor to your settings.   ⇒Downloading and Installing PHP ⇒⇒PHP Tutorials
2016-10-13, 261👍, 0💬

Verifying PHP Installation
How To Verify Your PHP Installation? PHP provides two execution interfaces: Command Line Interface (CLI) and Common Gateway Interface (CGI). If PHP is installed in the \php directory on your system, you can try this to check your installation: Run "\php\php -v" command to check the Command Line Inte...
2016-10-13, 251👍, 0💬

Escape Sequences in Single-Quoted Strings in PHP
How Many Escape Sequences Are Recognized in Single-Quoted Strings? There are two special characters you need to escape in a single-quote string: the single quote (') and the back slash (\). Here is a PHP script example of single-quoted strings: <?php echo 'Hello world!'; echo 'It\'s Friday!'; ech...
2016-10-13, 242👍, 0💬

Understanding PHP String Literals and Operations
Where to find tutorials for PHP String Literals and Operations? A collection of tutorials on PHP string literals, operations and conversion. Clear explanations and tutorial exercises are provided on single-quoted strings, double-quoted strings, string elements, concatenation, converting values to st...
2016-10-13, 241👍, 0💬

Special Characters in Double-Quoted Strings in PHP
What Are the Special Characters You Need to Escape in Double-Quoted Stings? There are two special characters you need to escape in a double-quote string: the double quote (") and the back slash (\). Here is a PHP script example of double-quoted strings: <?php echo "Hello world!"; echo "Tom said: ...
2016-10-13, 240👍, 0💬

Escape Sequences in Double-Quoted Strings in PHP
How Many Escape Sequences Are Recognized in Double-Quoted Strings? There are 12 escape sequences you can use in double-quoted strings: \\ - Represents the back slash character. \" - Represents the double quote character. \$ - Represents the dollar sign. \n - Represents the new line character (ASCII ...
2016-10-13, 244👍, 0💬

Ways to Include Variables in Double-Quoted Strings in PHP
How Many Ways to Include Variables in Double-Quoted Strings? There are 3 formats to include variables in double-quoted strings: "part 1 $variable part 2" - This is the simplest format to include a variable in a string. The variable name starts with the dollar sign and ends at the first character tha...
2016-10-13, 241👍, 0💬

Ways to Remove Leading and Trailing White Spaces in PHP
How Many ways to Remove Leading and Trailing White Spaces? There are 4 PHP functions you can use remove white space characters from the beginning and/or the end of a string: trim() - Remove white space characters from the beginning and the end of a string. ltrim() - Remove white space characters fro...
2016-10-13, 238👍, 0💬

Assigning a New Character in a String in PHP
How To Assigning a New Character in a String? The string element expression, $string{index}, can also be used at the left side of an assignment statement. This allows you to assign a new character to any position in a string. Here is a PHP script example: <?php $string = 'It\'s Friday?'; echo "$s...
2016-10-13, 236👍, 0💬

Comparing Two Strings in PHP
How To Compare Two Strings with Comparison Operators? PHP supports 3 string comparison operators, <, ==, and >, that generates Boolean values. Those operators use ASCII values of characters from both strings to determine the comparison results. Here is a PHP script on how to use comparison ope...
2016-10-13, 235👍, 0💬

Including Variables in Double-Quoted Strings in PHP
How To Include Variables in Double-Quoted Strings? Variables included in double-quoted strings will be interpolated. Their values will be concatenated into the enclosing strings. For example, two statements in the following PHP script will print out the same string: <?php $variable = "and"; echo ...
2016-10-13, 233👍, 0💬

Converting Numbers to Strings in PHP
How To Convert Numbers to Strings? In a string context, PHP will automatically convert any numeric value to a string. Here is a PHP script examples: <?php print(-1.3e3); print("\n"); print(strlen(-1.3e3)); print("\n"); print("Price = $" . 99.99 . "\n"); print(1 . " + " . 2 . " = " . 1+2 . "\n"); ...
2016-10-13, 232👍, 0💬

Accessing a Specific Character in String in PHP
How To Access a Specific Character in a String? Any character in a string can be accessed by a special string element expression: $string{index} - The index is the position of the character counted from left and starting from 0. Here is a PHP script example: <?php $string = 'It\'s Friday!'; echo ...
2016-10-13, 232👍, 0💬

Including Array Elements in Double-Quoted Strings in PHP
How Many Ways to Include Array Elements in Double-Quoted Strings? There are 2 formats to include array elements in double-quoted strings: "part 1 $array[key] part 2" - This is called simple format. In this format, you can not specify the element key in quotes. "part 1 {$array['key']} part 2" - This ...
2016-10-13, 231👍, 0💬

Concatenating Two Strings in PHP
How To Concatenate Two Strings Together? You can use the string concatenation operator (.) to join two strings into one. Here is a PHP script example of string concatenation: <?php echo 'Hello ' . "world!\n"; ?> This script will print: Hello world!   ⇒Understanding PHP String Literals and Oper...
2016-10-13, 230👍, 0💬

Counting the Number of Characters in PHP
How To Count the Number of Characters in a String? You can use the "strlen()" function to count the number of characters in a string. Here is a PHP script example of strlen(): <?php print(strlen('It\'s Friday!')); ?> This script will print: 12   ⇒PHP Built-in Functions for Strings ⇒⇒PHP Tutor...
2016-10-13, 229👍, 0💬

PHP Built-in Functions for Strings
Where to find tutorials and answers to frequently asked questions for PHP Built-in Functions for Strings? A collection of frequently asked questions on manipulating strings in PHP. Clear answers are provided with tutorial exercises on string functions including strlen, trim, substr, chop, strpos, st...
2016-10-13, 226👍, 0💬

Converting Strings to Numbers in PHP
How To Convert Strings to Numbers? In a numeric context, PHP will automatically convert any string to a numeric value. Strings will be converted into two types of numeric values, double floating number and integer, based on the following rules: The value is given by the initial portion of the string...
2016-10-13, 226👍, 0💬

Remove Trailing New Line Character in PHP
How To Remove the New Line Character from the End of a Text Line? If you are using fgets() to read a line from a text file, you may want to use the chop() function to remove the new line character from the end of the line as shown in this PHP script: <?php $handle = fopen("/tmp/inputfile.txt", "r...
2016-10-13, 225👍, 0💬

Removing Leading and Trailing Spaces in PHP
How To Remove Leading and Trailing Spaces from User Input Values? If you are taking input values from users with a Web form, users may enter extra spaces at the beginning and/or the end of the input values. You should always use the trim() function to remove those extra spaces as shown in this PHP s...
2016-10-13, 220👍, 0💬

Comparing Two Strings with strcmp() in PHP
How To Compare Two Strings with strcmp()? PHP supports 3 string comparison operators, <, ==, and >, that generates Boolean values. But if you want to get an integer result by comparing two strings, you can the strcmp() function, which compares two strings based on ASCII values of their charact...
2016-10-13, 254👍, 0💬

Joining Multiple Strings in PHP
How To Join Multiple Strings into a Single String? If you multiple strings stored in an array, you can join them together into a single string with a given delimiter by using the implode() function. Here is a PHP script on how to use implode(): <?php $date = array('01', '01', '2006'); $keys = arr...
2016-10-13, 240👍, 0💬

<< < 7 8 9 10 11 12 13 >   Sort: Rank