![Trending Articles on Technical and Non Technical topics](/images/trending_categories.jpeg)
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Malhar Lathkar has Published 155 Articles
![Malhar Lathkar](https://www.tutorialspoint.com/assets/profiles/211197/profile/60_4699-1591856239.jpg)
Malhar Lathkar
163 Views
IntroductionThe data URI scheme has been defined in RFC 2397, published in 1998. It provides a mechanism to include in-line data in web page as if it is an external resource. PHP provides data:// wrapper for data URI representation. The data URI is represented as per following syntaxdata:// syntaxdata:[media type][;base64], ... Read More
![Malhar Lathkar](https://www.tutorialspoint.com/assets/profiles/211197/profile/60_4699-1591856239.jpg)
Malhar Lathkar
483 Views
IntroductionThe superglobal $http_response_header array is populated by HTTP response headers as is the case with get_headers() functions. This array is created in local space of PHP$http_response_headerExampleOutputBrowser will display result similar to following0=>HTTP/1.1 302 Found 1=>Date: Tue, 08 Sep 2020 14:49:24 GMT 2=>Server: Apache/2.4.41 (Win64) OpenSSL/1.0.2s PHP/7.1.32 3=>X-Powered-By: PHP/7.1.32 4=>Location: http://localhost/dashboard/ 5=>Content-Length: 0 ... Read More
![Malhar Lathkar](https://www.tutorialspoint.com/assets/profiles/211197/profile/60_4699-1591856239.jpg)
Malhar Lathkar
23K+ Views
IntroductionThe global predefined variable $_FILES is an associative array containing items uploaded via HTTP POST method. Uploading a file requires HTTP POST method form with enctype attribute set to multipart/form-data.$HTTP_POST_FILES also contains the same information, but is not a superglobal, and now been deprecatedThe _FILES array contains following properties −$_FILES['file']['name'] - ... Read More
![Malhar Lathkar](https://www.tutorialspoint.com/assets/profiles/211197/profile/60_4699-1591856239.jpg)
Malhar Lathkar
5K+ Views
Introduction$_ENV is another superglobal associative array in PHP. It stores environment variables available to current script. $HTTP_ENV_VARS also contains the same information, but is not a superglobal, and now been deprecated.Environment variables are imported into global namespace. Most of these variables are provided by the shell under which PHP parser ... Read More
![Malhar Lathkar](https://www.tutorialspoint.com/assets/profiles/211197/profile/60_4699-1591856239.jpg)
Malhar Lathkar
3K+ Views
IntroductionWhen a PHP script is run from command line, $argv superglobal array contains arguments passed to it. First element in array $argv[0] is always the name of script. This variable is not available if register_argc_argv directive in php.ini is disabled.$argvFollowing script is executed from command line.Example Live DemoOutputarray(1) { [0]=> ... Read More
![Malhar Lathkar](https://www.tutorialspoint.com/assets/profiles/211197/profile/60_4699-1591856239.jpg)
Malhar Lathkar
389 Views
IntroductionThis superglobal variable is available when a PHP script is run from command line (and not when executed from HTTP server's document root). It is an integer that corresponds to number of command line arguments passed to current script. As script's filename has to be entered in command line, minimumn ... Read More
![Malhar Lathkar](https://www.tutorialspoint.com/assets/profiles/211197/profile/60_4699-1591856239.jpg)
Malhar Lathkar
316 Views
IntroductionWith Weak references, it is possible to retain a reference to an object which does not prevent the object from being destroyed. Implementing cache like structures can be done by Weak reference.A weak reference is similar to a normal reference, except that it doesn’t prevent the garbage collector from collecting ... Read More
![Malhar Lathkar](https://www.tutorialspoint.com/assets/profiles/211197/profile/60_4699-1591856239.jpg)
Malhar Lathkar
308 Views
IntroductionTraversable is an abstract interface, hence it can not be directly implemented by any class. Generally, Iterator or IteratorAggregate interfaces, which extend Traversable, are used to check if implementing class is traversable using foreach construct in PHP.Certain built-in classes that implement this interface can be used in foreach and need ... Read More
![Malhar Lathkar](https://www.tutorialspoint.com/assets/profiles/211197/profile/60_4699-1591856239.jpg)
Malhar Lathkar
383 Views
IntroductionIn PHP 7, Throwable interface acts as base for any object that can be a parameter to throw statement, including Error and Exception. Both Error and Exception classes, from which predefined and user defined error and exception classes are derived respectively, implement Throwable interface. Following abstract methods are defined in ... Read More
![Malhar Lathkar](https://www.tutorialspoint.com/assets/profiles/211197/profile/60_4699-1591856239.jpg)
Malhar Lathkar
464 Views
IntroductionThe Serializable interface is present in PHP library to build a class that provides custimised serialzing. PHP's serialize() function is able to serialize most of the values to a storable representation. However, objects of user defined classes can not be serialized. This interface makes it possible.SyntaxSerializable { /* Methods ... Read More