Archive

Category Archives for "PHP"

PHP Array

PHP Array is an array that stores one or more types of values in a single array. In other words An array is a special variable, which can hold more than one value at a time. For example if you want to store 50 names then instead of defining 50 variables its easy to define […]

Continue reading

PHP Array Search

PHP Array Search will Searches the array for a given value and returns the corresponding key if successful. Array Search PHP function will accepts three arguments, first argument is the value to search in array, second argument is the array to search, third argument is STRICT If the third parameter strict is set to TRUE […]

Continue reading

PHP Array Length using count or sizeof

PHP Array Length can be measured by using either count function or sizeof function in php. both functions will work same, sizeof function is an alias of count function. By using this count function in PHP, you can measure PHP Array Length. Counts all elements in an array, or something in an object and returns […]

Continue reading

Creating user defined php functions

Creating user defined php functions, this is not about built-in PHP functions, this is about creating user defined custom functions. Function is a block of statements that we can reuse them in other places. Function’s will not executed immediately on page load. These functions will be executed after calling them. We can use these functions […]

Continue reading

PHP is not recognized as an internal command

PHP is not recognized as an internal command, if you want to run php command or php scripts through command line you need to follow this article and setup your windows php development environment to execute php scripts through command line interface. Before executing php command through command line interface you need to add php […]

Continue reading

PHP String Replace

PHP String Replace function will be used for replacing all occurrences of a string with in a string. In str_replace, it expects three mandatory arguments first argument is search word, second argument is replace word, third argument is the main string where you want to replace it a term. Fourth argument is not mandatory it’s […]

Continue reading