Chandu yadav has Published 1091 Articles

highlight_file() function in PHP

Chandu yadav

Chandu yadav

Updated on 30-Dec-2019 06:39:35

227 Views

The highlight_file() function outputs a file with the PHP syntax highlighted.Syntaxhighlight_file(file, return)Parametersfile − The file name to display.return − If this parameter is set to true, this function will return the highlighted code as a string, instead of printing it out. default is false.ReturnThe highlight_file() function returns the highlighted code ... Read More

exit() function in PHP

Chandu yadav

Chandu yadav

Updated on 30-Dec-2019 06:36:53

1K+ Views

The exit() function prints a message and exits the current script.Syntaxexit(msg)Parametersmsg − The message to write before exiting the script.ReturnThe exit() function returns nothing.Example

FILTER_VALIDATE_BOOLEAN constant in PHP

Chandu yadav

Chandu yadav

Updated on 27-Dec-2019 10:15:03

374 Views

The FILTER_VALIDATE_BOOLEAN constant validates value as a boolean option.ReturnThe FILTER_VALIDATE_BOOLEAN constant returns TRUE for "1", "true", "on" and "yes". It returns FALSE for "0", "false", "off" and "no" otherwise, NULL.Example Live DemoOutputThe following is the output.bool(true)ExampleLet us see another example.OutputHere is the output.bool(false)Read More

filter_list() function in PHP

Chandu yadav

Chandu yadav

Updated on 27-Dec-2019 10:12:05

460 Views

The filter_list() function is used to list all supported filters.Syntaxfilter_list()ReturnThe filter_list() function returns an array of filters available. It returns an empty array if there are no filters.Example Live DemoOutputThe following is the output.int257 boolean258 float259 validate_regexp272 validate_domain277 validate_url273 validate_email274 validate_ip275 validate_mac276 string513 stripped513 encoded514 special_chars515 full_special_chars522 unsafe_raw516 email517 url518 number_int519 ... Read More

array_pad() function in PHP

Chandu yadav

Chandu yadav

Updated on 23-Dec-2019 08:50:44

478 Views

The array_pad() function inserts a specified number of items, with a specified value, to an array. It returns array with new elements. If size is positive then the array is padded on the right, if it's negative then the padding is done on the left.Syntaxarray_pad(arr, size, value)Parametersarr − the arraysize ... Read More

Learn how to security patches or updates automatically on ubuntu

Chandu yadav

Chandu yadav

Updated on 22-Oct-2019 13:13:26

59 Views

Are you using Ubuntu Server or Ubuntu system? then you should also be aware that, high profile banks are likely to be targeted by criminals looking for Server information/Files. Should you really worry?. maybe! This article provides you awareness on – Installing Security Patches for updating automatically on Ubuntu.Use the ... Read More

Great tools to check linux disk partitions and usage in linux

Chandu yadav

Chandu yadav

Updated on 22-Oct-2019 12:38:12

526 Views

Are you working as a system admin, then you should know these tools to manage disk space. This article explains about how to check Linux Disk Partitions and Usage in Linux.FdiskFdisk is a text based utility. By utilizing fdisk, you can create a brand new partition, delete the present partition, ... Read More

8085 program to alternate D0 bit with specified delay

Chandu yadav

Chandu yadav

Updated on 07-Oct-2019 13:21:31

389 Views

Now let us see a program of Intel 8085 Microprocessor. In this program we will see how to alternate the D0 bit and send as output.Problem StatementWrite 8085 Assembly language program to alternate D0 bit. And send this as output.DiscussionAlternating D0 bit and sending as output is like generating the ... Read More

Fiber Optics vs Satellites

Chandu yadav

Chandu yadav

Updated on 03-Aug-2019 19:43:53

3K+ Views

Fiber optic communications and satellite communications are complementary to each other. Their properties are very different from one another and consequently their usage varies.Comparison between satellite communication and optical fiber communication can be done based upon the following areas −TerrainSatellite communication is best suited for rough terrains, poorly connected areas ... Read More

What is the equivalent of EXCEPT in MySQL?

Chandu yadav

Chandu yadav

Updated on 30-Jul-2019 22:30:26

4K+ Views

You cannot use EXCEPT in MySQL, instead use the NOT IN operator. Let us first create a table −mysql> create table DemoTable    (    Number1 int    ); Query OK, 0 rows affected (0.71 sec)Insert some records in the table using insert command −mysql> insert into DemoTable values(100); Query ... Read More

Advertisements