Tag: php


19

Aug 2015

Display twitter feed on website using PHP

Display twitter feed on website using php First -> include “TwitterAPIExchange.php” and “twitteroauth.php” files.


19

Aug 2015

Missing element in Array Using PHP

Missing element in Array Using PHP By using arry_diff function we can easily find the missing element in a given array. Example:


19

Aug 2015

Compress and Uncompressed string in PHP

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 lacus quis ante. Lorem ipsum dolor sit amet, consectetur adipiscing elit. String length after compress...

Read More


19

Aug 2015

Arbitrary Number of Function Arguments in PHP

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


19

Aug 2015

Array Key Case Change function in php

Using array_change_key_case function we can easily change case of array key. Syntax: Example: case either CASE_LOWER or UPPER_CASE


19

Aug 2015

Error Reporting in PHP

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 my error reporting is off. So if i run this code nothing has to be...

Read More


19

Aug 2015

PHP ARRAY

Like another programming language php also having array. Array is a special variable which can used to store multiple values of same data type. Array is used to hold all values under one single name and we used that value by referring that name of array. Array can be accessed by its index value. Types of Array: Numeric Array Associative Array Multidimensional Array. Numeric Array:  In...

Read More


19

Aug 2015

Variables in PHP

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 define with a sigh of ‘$’ i.e. $a, $abc etc. The first character after $...

Read More



Page 1 of 212