PHP Programs

This section contains PHP solved programs with explanations, outputs.

Basic programs

Array programs

PHP String Programs

  1. Concatenating two strings in PHP
  2. How to convert array into string in PHP?
  3. Check if string contains a particular character in PHP
  4. How to convert a string to uppercase in PHP?
  5. PHP program to convert string to uppercase without using the library function
  6. PHP program to convert string to lowercase without using the library function
  7. PHP | Check whether a specific word/substring exists in a string
  8. PHP | Reverse a given string without using the library function
  9. PHP | Split comma delimited string into an array without using library function
  10. All string programs

PHP Class and Object Programs

  1. PHP program to create an object of a class and access the class attributes
  2. PHP program to create multiple objects of a class and access attributes of the class
  3. PHP program to define methods within the class
  4. PHP program to initialize data members without using the constructor
  5. PHP program to print the size of the empty class
  6. More programs...

PHP Exception Handling Programs

  1. PHP program to demonstrate the Divide By Zero Exception using exception handling
  2. PHP program to demonstrate the Array index out of bound exception using exception handling
  3. PHP program to demonstrate the NULL reference exception using exception handling
  4. PHP program to create a user-defined exception class
  5. PHP program to create DivideByZeroException class
  6. More programs...

PHP JSON Programs

  1. PHP program to convert an associated array into JSON format
  2. PHP program to demonstrate the json_encode() function with indexed array of strings
  3. PHP program to demonstrate the json_encode() function with multi-dimensional array
  4. More programs...

PHP Regular Expressions Programs

  1. PHP program to check a substring exists within the given string using a regular expression pattern
  2. PHP program to check a case insensitive substring exists within the given string using regular expression pattern
  3. PHP program to demonstrate the regular expression to count the occurrence of given substring
  4. More programs...

PHP Database Programs

Miscellaneous






Comments and Discussions

Ad: Are you a blogger? Join our Blogging forum.





Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing
» Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates


© https://www.includehelp.com some rights reserved.