Skip to content

Schools of Web

Teach Yourself Web Development and Web Designing Step by Step With Easy Explanation

  • All About PHP
    • PHP for Beginners
    • PHP Function List
    • PHP How-to
  • HTML
    • HTML for Beginners
    • HTML How-to
  • CSS
    • CSS for Beginners
    • CSS How-to
Search Search Close
  • Home
  • PHP How-to
  • Page 7

Category: PHP How-to

Here you’ll find different PHP how-to tutorials.

Please browse the following articles.

 

 

 

Apr 25

How to Split a Comma Delimited/separated String into an Array in PHP?

Neil FinLeave a commentPHP How-tocomma separated file, explode() function, php split string by comma

SOLUTION: Learn technique to split a comma separated string into an array.

Apr 25

How to Add Element(s) to the Beginning of an Array in PHP?

Neil FinLeave a commentPHP How-toarray_unshift() example, php add item to array, php array_unshift()

Problem: You have an array(ex. the following one) which has all even numbers as values. Now, you want to a new item(suppose 2) in the first position of the array.

Apr 23

How to Find if an Array is Indexed or Associative in PHP?

Neil FinLeave a commentPHP How-tois Indexed or Associative in PHP

Problem: You have an array which has some elements inside. You want to check whether the array is an associative array or an indexed array.

Apr 22

How to Sort an Array by Values in PHP?

Neil FinLeave a commentPHP How-toarsort() example, arsort() function, asort() example, asort() function, sort() example, sort() function

Problem: You have an array – a one-dimensional array, see the following example. You want to sort the values of array.

Apr 20

How to Format a Number with Leading Zero in PHP?

Neil Fin4 CommentsPHP How-tophp sprint, printf example, sprintf example, sprintf function, str_pad example

SOLUTION: Learn techniques to add leading zero of a number.

Apr 19

How to Determine if a Number is Odd or Even in PHP?

Neil FinLeave a commentPHP How-tophp if number is odd

SOLUTION: Learn technique to determine if a number is odd or even.

Apr 18

How to Add an Element to the End of an Array in PHP?

Neil FinLeave a commentPHP How-toarray_push() example, php array_push

SOLUTION: Learn how to add one or more elements to the end of an Array.

Apr 17

How to Read or Get the Full URL Path of the Current Webpage in PHP?

Neil FinLeave a commentPHP How-to$_SERVER['HTTP_HOST'], $_SERVER['HTTPS'], $_SERVER['REQUEST_URI'], how to get a url, php current url path, php get full url path, php get url path, php read from url, php read url, php url path

SOLUTION: Learn how to read the full URL path of the current webpage in PHP.

Apr 16

How to Remove Duplicate Values from a Multidimensional Array in PHP?

Neil Fin3 CommentsPHP How-toremove duplicate values from multidimensional array

SOLUTION: Learn technique to remove duplicate values from a multidimensional array & make it an unique one.

Apr 15

How to Flatten/Convert a Multidimensional Array into a Simple One in PHP?

Neil FinLeave a commentPHP How-toconvert multidimensional array to single one, flatten multidimensional array, RecursiveArrayIterator example, RecursiveIteratorIterator example

SOLUTION: Learn the technique to flatten a multidimensional array into a simple One.

Posts pagination

Previous 1 … 6 7 8 … 10 Next

Courses

  • PHP for Beginners
  • CSS for Beginners
  • HTML for Beginners

How-to Tutorials

  • PHP How-to
  • HTML How-to

About this site

Schools of Web is run by web developer and designer to help others learn it easily.
  • Home
  • About Us
  • Contact Us
  • Privacy Policy
  • Earnings Disclaimer
Copyright © All rights reserved.
Education Soul by WEN Themes