Toggle navigation
HOME
plus2net HOME
SQL
JavaScript
HTML
Python
ASP
jQuery
C
PhotoShop
PHP
PHP Home
Beginners guide
Loops
Date
Form
Array
String
Math
Mail
File - directory
curl
PHP & XML
GD: graphs
Calendar
Filters
PHP MySQL
PDO
MySQLi
Session
Scripts
PDF Generation
PHP String
All String Functions in PHP
str_replace
: Replace string
str_ireplace
: search and replace
strlen
: How to find length of a string in PHP?
trim
: Removing empty space from both sides of a string
strrev
: Reversing a string by using strrev function in PHP
Adding two or more strings in PHP
chop()
stristr
: Searching string
nl2br
: Adding Line breaks
split
: Breaking a string to form array using delimiters
explode
: Breaking a string to form array using delimiters
substr
: Collecting part of a string
substr_count
: Counting occurrence of sub string in main string
str_repeat
: Repeating a string number of times
strtoupper() strtolower
:
ctype_lower() ctype_upper()
:
Validating string
function to collect part of a string with two landmarks
Password Generator
strcasecmp()
: Case insensitive string comparison
strcmp()
: Case sensitive string comparison
str_pad()
: String pad with specified length
md5 hash of a string: encryption of a string
Separating domain and userid part from email
htmlspecialchars: Printing html special chars to the page
strip_tags: Removing html tags within a string
ucwords: Converting first letter of every word to UpperCase
fgetcsv: Getting data from csv files
fputcsv: Writing data to a csv file
Submit
Login
×
Login
Username
Password
Login
Contact Us
fgetcsv(): Getting data from CSV file
Table Name
CSV Data
GENERATE
←
STRING REFERENCE
fputcsv(): to write data to a csv file
→
←
Subscribe to our YouTube Channel here
This article is written by
plus2net.com
team.
https://www.plus2net.com
Subscribe
*
indicates required
Email Address
*
First Name
Last Name
Subscribe to plus2net
plus2net.com
PHP String Functions
All String Functions in PHP
str_replace
: How to replace a part of a string with another string
str_ireplace
: Case in-sensitive search and replace using array of strings
strlen
: How to find length of a string in PHP?
trim
: Removing empty space from both sides of a string
strrev
: Reversing a string by using strrev function in PHP
Adding two or more strings in PHP
chop()
stristr
: Searching for a presence of a string inside another string
nl2br
: Adding Line breaks inside a string in place of carriage returns
split
: Breaking a string to form array using delimiters
explode
: Breaking a string to form array using delimiters
substr
: Collecting part of a string
substr_count
: Counting occurrence of sub string in main string
str_repeat
: Repeating a string number of times
strtoupper() strtolower
: function to change characters to upper case letters
ctype_lower() ctype_upper()
: Checking for all lower of Upper chars in string
Validating for at lease one lower case or upper case or special chars in a string
function to collect part of a string with two landmarks
Random string generator with number and alphabets for password
strcasecmp()
: Case insensitive string comparison
strcmp()
: Case sensitive string comparison
str_pad()
: String pad with specified length
md5 hash of a string: encryption of a string
Separating domain and userid part from an email address using split
htmlspecialchars: Printing html special chars to the page
strip_tags: Removing html tags within a string
ucwords: Converting first letter of every word to UpperCase
fgetcsv: Getting data from csv files
fputcsv: Writing data to a csv file
Post your comments , suggestion , error , requirements etc here .
Detail
✖
We use cookies to improve your browsing experience. .
Learn more
HTML
MySQL
PHP
JavaScript
ASP
Photoshop
Articles
FORUM
.
Contact us
©
2000-2024
plus2net.com
All rights reserved worldwide
Privacy Policy
Disclaimer