Tech Fry
  • Home
  • Tutorials
  • Login
Home Tutorials Login

PHP String Functions

PHP provides many built-in functions for working with strings.

How to Change Case in PHP - strtolower() and strtoupper() Functions
How to Convert Special Characters to HTML Entities - htmlspecialchars() Function
How to Count Words in PHP - str_word_count() Function
How to Find First Occurrence in String - strstr() and stristr() Function
How to Find Part of String - substr() Function
How to Find Position of Substring in PHP - strpos() Function
How to Find String Length in PHP - strlen() Function
How to Increment or Decrement String in PHP - str_increment() and str_decrement() Functions
How to Remove HTML tags from String in PHP - strip_tags() Function
How to Remove Whitespace Characters in a string in PHP - trim() Function
How to Replace String in PHP - str_replace() Function
How to Split String in PHP using Delimiter - explode() Function
Searching for a Pattern Using preg_match()
  1. Home
  2. PHP
  3. PHP String Functions
Subscribe for Newsletter
Latest Updates
PHP File HandlingPHP Directory HandlingPHP ArraysPHP LoopsPHP FunctionsPHP Conditional StatementsPHP OperatorsPHP Strings
External Links
  • Joomla Extensions
  • MDN Docs
  • PHP
Topics
  • Linux
  • Marketing
  • PHP
  • Google
  • DNS
  • Resources
Site Links
  • Contact
RSS Feeds
Feed Entries
Connect