Filter and Sanitize Email Constant in PHP

Arjun Thakur
Updated on 27-Jun-2020 08:40:01

440 Views

The FILTER_SANITIZE_EMAIL constant deletes all illegal characters from an email address.ReturnThe FILTER_SANITIZE_EMAIL constant does not return anything.ExampleOutputThe following is the output.abc@demo.com

Filter, Sanitize and Encode Constants in PHP

Chandu yadav
Updated on 27-Jun-2020 08:38:21

285 Views

The FILTER_SANITIZE_ENCODED constant encodes special characters.Flags and OptionsFILTER_FLAG_STRIP_LOW − Remove characters with ASCII value less than 32FILTER_FLAG_STRIP_HIGH − Remove characters with ASCII value greater than 127FILTER_FLAG_ENCODE_LOW − Encode characters with ASCII value less than 32FILTER_FLAG_ENCODE_HIGH − Encode characters with ASCII value greater than 127ReturnThe FILTER_SANITIZE_ENCODED constant does not return anything.ExampleThe following is an example that use FILTER_FLAG_ENCODE_HIGH flag to encode characters with ASCII value > 127Example Live DemoOutputThe following is the output.www.example.comLet us see another example.Example Live DemoOutputHere is the output.example.comRead More

Filter and Sanitize Magic Quotes Constant in PHP

George John
Updated on 27-Jun-2020 08:34:08

324 Views

The FILTER_SANITIZE_MAGIC_QUOTES constant performs the addslashes() function to a string. It adds backslashes in front of predefined characters i.e. single quote ('), double quote ("), backslash (\), NULL.ReturnThe FILTER_SANITIZE_MAGIC_QUOTES constant does not return anything.Example Live Demo

Uses of Google Home Mini and Google Home Max

siddhartha kotamraju
Updated on 27-Jun-2020 08:30:30

167 Views

Google home is a multipurpose Wi-Fi speaker which can be used as a home control center for the entire family. Google Home is a smart speaker. In September 2017 Google has launched two new Home devices - the affordable Home Mini and high-end Home Max.The Google Home speakers are Voice-controlled, that controls smart home gadgets, answers trivia questions, plays music on command, creates calendar appointments, or play video on a Chromecast-enabled screen.It can be used for playing music throughout the house, it can also be used as a search engine as it is the best “best-in-class voice recognition” according to ... Read More

Filter and Validate Integer Constant in PHP

Arjun Thakur
Updated on 27-Jun-2020 08:30:08

1K+ Views

The FILTER_VALIDATE_INT constant validates value as integer.Options and flagsmin_range − The minimum integer valuemax_range − The maximum integer valueFILTER_FLAG_ALLOW_OCTAL − Allows octal number valuesFILTER_FLAG_ALLOW_HEX − Allows hexadecimal number valuesReturnThe FILTER_VALIDATE_INT constant does not return anything.Example Live DemoOutputThe following is the output.float(3.5) Integer VariableLet us see another example.Example Live DemoOutputHere is the output.Accepted range!

Filter Validate URL Constant in PHP

Ankith Reddy
Updated on 27-Jun-2020 08:24:36

488 Views

The FILTER_VALIDATE_URL constant validates a URL.FlagsFILTER_FLAG_SCHEME_REQUIRED − URL must be RFC compliant.FILTER_FLAG_HOST_REQUIRED − URL must include host name.FILTER_FLAG_PATH_REQUIRED −URL must have a path after the domain name.FILTER_FLAG_QUERY_REQUIRED −URL must have a query string.ReturnThe FILTER_VALIDATE_URL constant does not return anything.Example Live DemoOutputThe following is the output.Valid URL!Let us see another example.Example Live DemoOutputHere is the output.Invalid URL!

Private and Final Methods in Java Programming

Vikyath Ram
Updated on 27-Jun-2020 08:12:16

8K+ Views

In Java private methods are the methods having private access modifier and are restricted to be access in the defining class only and are not visible in their child class due to which are not eligible for overridden. However, we can define a method with the same name in the child class and could access in parent class.Like private methods final methods in Java are the methods having final non-access modifier instead of private and are again restricted to be accessed in the defining class only and are not visible in their child class due to which are not eligible ... Read More

Control Unit and CPU

George John
Updated on 27-Jun-2020 08:10:32

4K+ Views

During the execution of a program, the control unit fetches one instruction at a time from the main memory and then executes it. In this execution process, it takes help of ALU, if the instruction execution involves arithmetic or logical operation (like AND, OR, Ex-OR). After execution of the current instruction, the CPU fetches the next instruction for execution. This process continues until the program is completed and the result is output using the output device. In many computers, the control unit and the ALU are integrated into a single block, known as Central Processing Unit (CPU).Central Processing Unit (CPU) consists ... Read More

Input and Output Ports in Computers

Arjun Thakur
Updated on 27-Jun-2020 08:09:29

2K+ Views

CPU and the main memory are having speed faster compared to the electromechanical input or output devices like printers, mouse etc. In such a case it is essential that the data lines of the computer should not kept engaged for a long time during communication with input/output (I/O) devices. Otherwise as an effect, the overall speed of the computer system comes down drastically. So I/O devices are connected to a computer through I/O ports.For example, to get a document printed by the printer, phase wise printer will get required information from the CPU to carry out the printing process. After ... Read More

Microcomputer Basics

Ankith Reddy
Updated on 27-Jun-2020 08:08:39

2K+ Views

A microcomputer can be defined as a small sized, inexpensive, and limited capability computer. It has the same architectural block structure that is present in a computer. Present-day microcomputers are having smaller sizes. Nowadays, they are of the size of a notebook. But in coming days also their sizes will get more reduced as well. Due to their lower costs, individuals can possess them as their personal computers. Because of mass production they are becoming still cheaper. Initially in the earlier days they were not very much powerful. Their internal operations and instructions were very much limited and restricted. But ... Read More

Advertisements