This is the custom PHP by this one’s can get date range from two different dates in PHP. Example : Function call Just pass the two different dates and the date format which you want the output.In the above call we are calling getDatesFromRange defined above and we want the…
Display twitter feed on website using php First -> include “TwitterAPIExchange.php” and “twitteroauth.php” files.
PHP extract link from <a> tag Output: Link: www.xyz.com/index.php Url: My URL
Missing element in Array Using PHP By using arry_diff function we can easily find the missing element in a given array. Example:
In php, it is possible to compress and uncompress a string. Output : Actual String length :282 Actual String Data :Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc ut elit id mi ultricies adipiscing. Nulla facilisi. Praesent pulvinar, sapien vel feugiat vestibulum, nulla dui pretium orci, non ultricies elit…
In PHP there is a method to pass arbitrary number of function arguments. For Example: Output: Without argument Single argument State Name1: Delhi Multiple argument call State Name1: Delhi State Name2: Mumbai State Name3: Uttrakhand
Using array_change_key_case function we can easily change case of array key. Syntax: Example: case either CASE_LOWER or UPPER_CASE
In this article we are discussing error reporting in php and we also discuss why error reporting is important during development and why it is important to turn it off. for example: In this example i missing the line terminator or $var which is a semi colon. At that moment…
Variables are used to store information or a value to its. Like other programming language php have its own variable .but in php there is no need to define its data type it will be automatically regret its vale that it is of integer or character type. In php variable…