Skip to content

Tutorial KartTutorialKart

×
C++ Java PHP Python Kotlin Swift JavaScript Golang
  • PHP Tutorial
  • PHP Tutorial
  • PHP Install
  • PHP Hello World
  • PHP Variables
    • Check if variable is set
  • PHP Echo
  • PHP Datatypes
    • Boolean
    • Integer
    • Type Conversions
      • Convert string to int
      • Convert string to float
      • Convert string to boolean
      • Convert int to string
      • Convert int to float
    • Get type of variable
  • PHP Operators
    • Arithmetic
      • Addition
      • Subtraction
      • Multiplication
      • Division
      • Modulus
      • Exponentiation
    • Assignment
      • Simple Assignment
      • Addition Assignment
      • Subtraction Assignment
      • Multiplication Assignment
      • Division Assignment
      • Modulus Assignment
  • PHP Comments
  • PHP Conditional Statements
    • If
    • If Else
    • ElseIf
    • Switch
    • Python If AND
    • Python If OR
    • Python If NOT
  • PHP Loops
    • While Loop
    • For Loop
    • foreach
    • Nested foreach
  • PHP Functions
    • sizeof()
    • echo() vs print()
    • printf() vs sprintf()
  • PHP Strings
  • PHP String Operations
    • Basics
    • Create a string
    • Create empty string
    • Compare strings
    • Count number of words in string
    • Get ASCII value of a character
    • Iterate over characters of a string
    • Iterate over words of a string
    • Print string to console
    • String length
    • Substring of a string
    • Checks
    • Check if string is empty
    • Check if strings are equal
    • Check if strings are equal ignoring case
    • Check if string contains specified substring
    • Check if string starts with specific substring
    • Check if string ends with specific substring
    • Check if string starts with specific character
    • Check if string starts with http
    • Check if string starts with a number
    • Check if string starts with an uppercase
    • Check if string starts with a lowercase
    • Check if string ends with a punctuation
    • Check if string ends with forward slash (/) character
    • Check if string contains number(s)
    • Check if string contains only alphabets
    • Check if string contains only numeric digits
    • Check if string contains only lowercase
    • Check if string contains only uppercase
    • Check if string value is a valid number
    • Check if string is a float value
    • Updates
    • Append a string with suffix string
    • Prepend a string with prefix string
    • Concatenate strings
    • Concatenate string and number
    • Insert character at specific index in string
    • Insert substring at specific index in string
    • Repeat string for N times
    • Replace substring
    • Replace first occurrence
    • Replace last occurrence
    • Trim spaces from edges of string
    • Trim specific characters from edges of the string
    • Split
    • Split string
    • Split string into words
    • Split string by comma
    • Split string by single space