Browsing:

Category: Php Knowledge

How to become a good php developer

php developerr

PHP, abbreviated as Hypertext preprocessor is a kind of programming or scripting language used in computer systems. It was established in the year of 1994 by Rasmus Lerdorf for the purpose of website development. PHP also find applications in the process of website designing apart from development. It is one of the open source computer languages, whose scripting is made usually on the server side. It constitutes mainly the components Read more…


PHP switch case Statement

switch case

PHP switch case statement Use to select one of many blocks of code to be executed.switch-case statement is alternative of the if-elseif-else statement, which does almost the same thing. The switch-case statement tests a variable against a series of values until it finds a match, and then executes the block of code corresponding to that match. Syntax of switch case statement

  Example  

    switch case Read more…


Post Json Data With Php curl

How to POST JSON Data With PHP cURL? The PHP cURL is a library used for making HTTP requests. use PHP cURL, we need to enabled libcurl module for PHP on your system. When we working with web services and APIs, sending JSON data via POST request is the most required functionality. PHP cURL makes it easy to POST JSON data to URL. I will show you how to POST Read more…


Random/Shuffle Images in PHP

shuffle function in php Hello friends, Sometimes we need to show random images on your page on every refresh. user will see random images. suppose if we have blog that have 50 images using php shuffle function we will show random images on our home page. shuffle() function randomizes the order of the elements in the array.shuffle function assigns new keys for the elements in the array. Existing keys will Read more…


HTTP GET and POST Method in PHP

What is HTTP? HTTP Stands for Hypertext Transfer Protocol (HTTP). That is Manipulate to enable communications between clients and servers. HTTP works as a request and response protocol between a client and server. What is client and Server There are two ways the browser client can send information to the web server. A web browser may be the client, and application on a computer that hosts a web site may be Read more…


How To Check Number Is Odd Or Even

How To Check Number Is Odd Or Even in php. first we understand what is even and odd. Even Number : A number is called even if the number is divisible by 2 Odd Number : A number is called odd if it is not divisible by 2. Below are simple Examples for understand : Input : 90 Output : Even Explanation: The number 90 is divisible by 2 Input Read more…