About 27,000,000 results
Open links in new tab
  1. PHP Strings - GeeksforGeeks

    Apr 11, 2025 · You can create a string using single quotes (‘ ‘) or double quotes (” “). PHP supports special syntax like heredoc and nowdoc for multiline strings. You can join (concatenate) two or more strings using the dot (.) operator.

  2. PHP Strings - W3Schools

    Search For Text Within a String. The PHP strpos() function searches for a specific text within a string. If a match is found, the function returns the character position of the first match. If no match is found, it will return FALSE.

  3. How to Create and Manipulate Strings in PHP - Tutorial Republic

    In this tutorial you will learn how to create strings in PHP as well as how to use the PHP string functions to manipulate and perform operations on strings.

  4. PHP String Functions - W3Schools

    The PHP string functions are part of the PHP core. No installation is required to use these functions. Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, Python, PHP, Bootstrap, Java, XML and more.

  5. Creating Strings in PHP - Elated

    Sep 14, 2009 · Learn how to create strings in PHP. Looks at single and double quoted strings; variable parsing; escape sequences; multi-line strings; heredoc/nowdoc syntax, and more.

  6. PHP StringHow to Create a String and Use String Functions

    Jul 14, 2024 · Master PHP string manipulation with essential rules, creation methods, concatenation techniques, and powerful built-in functions

  7. PHP String - Tpoint Tech - Java

    Apr 17, 2025 · We can create a string in PHP by enclosing the text in a single-quote. It is the easiest way to specify string in PHP. For specifying a literal single quote, escape it with a backslash (\) and to specify a literal backslash (\) use double backslash (\\).

  8. PHP Strings: PHP String Functions Explained with Examples - Guru99

    Jun 28, 2024 · Let’s now look at the four different ways of creating PHP string functions and string manipulation in PHP. Creating PHP Strings Using Single quotes: The simplest way to create a string is to use single quotes. Let’s look at an example that creates a simple string in PHP. Output:

  9. How to Create PHP Strings with Examples and Uses - Tutorialdeep

    In this tutorial, learn about PHP strings and method to find the length, count the number of characters, replace text, reverse string, concatenate strings, and split a string into an array using PHP. PHP string is a sequence of characters that may …

  10. How to create a string in PHP? - Tutorial Kart

    In this PHP tutorial, you shall learn how to create a new string using single or double quotes notation, with example programs. To create a string literal in PHP, we can either enclose the string value in single quotes, or double quotes. The following is a simple example to create a string literal using single quotes.

Refresh