Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
Python
C
C++
Java
Courses
Machine Learning
DevOps
Web Development
System Design
Aptitude
Projects
Sign In
▲
Similar Topics
Web Technologies
40.3k+ articles
DSA
22.3k+ articles
PHP
3.8k+ articles
PHP-function
2.2k+ articles
Misc
2.1k+ articles
PHP Programs
610+ articles
PHP-Questions
410+ articles
PHP-array
180+ articles
PHP-basics
93 articles
Functions
87 articles
PHP-string
150+ posts
Popular Articles
Recent Articles
How to check for empty string in PHP ?
Last Updated: 07 August 2024
In this article, we will see how to check for empty string in PHP. String is a set of characters. A string is said to be empty, if it contai
...read more
Web Technologies
PHP-string
PHP-function
Picked
PHP
PHP-Questions
How to append a string in PHP ?
Last Updated: 07 August 2024
We have given two strings and the task is to append a string str1 with another string str2 in PHP. There is no specific function to append a
...read more
Web Technologies
PHP-string
PHP
PHP Programs
PHP-Misc
How to Remove Special Character from String in PHP?
Last Updated: 10 September 2024
We are given a string and the task is to remove special characters from string str in PHP.Below are the approaches to remove special charact
...read more
Web Technologies
PHP-string
PHP
PHP-Questions
Similar Topics
Web Technologies
40.3k+ articles
DSA
22.3k+ articles
PHP
3.8k+ articles
PHP-function
2.2k+ articles
Misc
2.1k+ articles
PHP Programs
610+ articles
PHP-Questions
410+ articles
PHP-array
180+ articles
PHP-basics
93+ articles
Functions
87+ articles
Generating Random String Using PHP
Last Updated: 19 September 2024
Generating a random string involves creating a sequence of characters where each character is selected unpredictably from a defined set (e.g
...read more
Hash
Randomized
Technical Scripter
Web Technologies
PHP-string
PHP
PHP Programs
DSA
How to generate a random, unique, alphanumeric string in PHP
Last Updated: 04 July 2024
There are many ways to generate a random, unique, alphanumeric string in PHP which are given below:Table of ContentUsing str_shuffle() Funct
...read more
Web Technologies
PHP-string
PHP
PHP Programs
PHP | Converting string to Date and DateTime
Last Updated: 09 July 2024
Converting the string to Date and DateTime uses several functions/methods like strtotime(), getDate(). We will see what these functions do.
...read more
Technical Scripter
date-time-program
Web Technologies
PHP-string
PHP-date-time
Picked
PHP
Technical Scripter 2018
How to remove the first character of string in PHP?
Last Updated: 16 July 2024
Remove the very first character of a given string in PHP Examples: Input : GeeksforgeeksOutput : eeksforgeeksInput :, Hello geek!Output :
...read more
Technical Scripter
Web Technologies
PHP-string
Picked
PHP
PHP strval() Function
Last Updated: 13 September 2024
The PHP strval() function converts a given variable to a string. It takes a scalar variable (like integers, floats, and booleans) and conver
...read more
Web Technologies
PHP-string
PHP
PHP strlen() Function
Last Updated: 05 September 2024
The strlen() is a built-in function in PHP which returns the length of a given string.It calculates the length of the string including all t
...read more
Web Technologies
PHP-string
PHP-function
PHP
PHP strtolower() Function
Last Updated: 09 September 2024
The strtolower() function is used to convert a string into lowercase. Syntax:string strtolower( $string )Parameters: The only parameter to t
...read more
Web Technologies
PHP-string
PHP-function
PHP
PHP str_split() Function
Last Updated: 21 June 2023
The str_split() is an inbuilt function in PHP and is used to convert the given string into an array. This function basically splits the give
...read more
Web Technologies
PHP-string
PHP-function
PHP
Concatenation of two strings in PHP
Last Updated: 16 September 2024
In this article, we will concatenate two strings in PHP. There are two string operators. The first is the concatenation operator ('.'), whic
...read more
Strings
Web Technologies
PHP-string
PHP
DSA
PHP str_replace() Function
Last Updated: 30 November 2021
In this article, we will see how to replace the occurrence of the search string with the replacing string using the str_replace() function i
...read more
Web Technologies
PHP-string
PHP-function
PHP
PHP explode() Function
Last Updated: 17 September 2024
The explode() function is an inbuilt function in PHP used to split a string into different strings. The explode() function splits a string b
...read more
Web Technologies
PHP-string
PHP-function
PHP
PHP | Palindrome Check
Last Updated: 12 July 2021
In this article, we will learn how to check whether a number and a string is a palindrome or not in PHP. A number or string is said to be a
...read more
Web Technologies
PHP-string
PHP
1
2
3
4
5
6
7
8
>>
Last
1
2
3
4
5
6
>>
Last
1
2
3
4
>>
Last
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !