Arjun Thakur has Published 1025 Articles

constant() function in PHP

Arjun Thakur

Arjun Thakur

Updated on 27-Jun-2020 08:50:44

263 Views

The constant() function returns the value of a constant.Syntaxconstant(const)Parametersconst − The name of the constant to checkReturnThe constant() function returns the value of a constant and NULL if the constant is not defined.ExampleThe following is an example that defines a constant. Live DemoOutputThe following is the output.This is it!Read More

FILTER_SANITIZE_EMAIL constant in PHP

Arjun Thakur

Arjun Thakur

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

433 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_VALIDATE_INT constant in PHP

Arjun Thakur

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 ... Read More

Computers Input/Output Ports

Arjun Thakur

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 ... Read More

Microcontroller Basics

Arjun Thakur

Arjun Thakur

Updated on 27-Jun-2020 08:01:55

8K+ Views

A Microcontroller is a small and low-cost microcomputer, which is designed to perform the specific tasks of embedded systems like displaying microwave’s information, receiving remote signals etc.The general microcontroller consists of the processor, the memory (RAM, ROM, EPROM), Serial ports, peripherals (timers, counters) etc.Types of MicrocontrollersMicrocontrollers are divided into various ... Read More

How to set ImageView in edittext?

Arjun Thakur

Arjun Thakur

Updated on 27-Jun-2020 06:58:59

295 Views

This example demonstrate about How to set Image View in edit text.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.     In the ... Read More

How to draw profile icon shape in android?

Arjun Thakur

Arjun Thakur

Updated on 27-Jun-2020 06:53:48

756 Views

This example demonstrate about How to draw profile icon shape in android.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.     In the ... Read More

How to perform Merge Sort using C#?

Arjun Thakur

Arjun Thakur

Updated on 27-Jun-2020 06:50:48

2K+ Views

Merge Sort is a sorting algorithm that uses the divide and conquer method. It divides the array into two parts and then calls itself for each of these two parts. This process is continued until the array is sorted.A program that demonstrates merge sort in C# is given as follows ... Read More

How can I add an image on EditText?

Arjun Thakur

Arjun Thakur

Updated on 27-Jun-2020 06:44:58

589 Views

This example demonstrate about how can I add an image on EditText.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.     In the ... Read More

How to delete data in a MySQL database with Java?

Arjun Thakur

Arjun Thakur

Updated on 26-Jun-2020 16:58:25

5K+ Views

Delete data from a MySQL database with the help of DELETE command. The syntax is as follows.delete from yourTableName where condition;I will delete data from a MySQL database with the help of JAVA programming language. First, create a table and insert some records. The following is the query to create ... Read More

Advertisements