Chandu yadav has Published 1163 Articles

imagefilledellipse() function in PHP

Chandu yadav

Chandu yadav

Updated on 31-Dec-2019 06:19:07

94 Views

The imagefilledellipse() function is used to draw a filled ellipse.Syntaximagefilledellipse( $img, $cx, $cy, $width, $height, $color )Parametersimg This creates a blank image with imagecreatetruecolor()cx x-coordinate of the center.cy y-coordinate of the center.width The ellipse width.height The ellipse height.color The fill color.ReturnThe imagefilledellipse() function returns TRUE on success or FALSE on failure.ExampleThe ... Read More

unpack() function in PHP

Chandu yadav

Chandu yadav

Updated on 30-Dec-2019 07:00:49

390 Views

The unpack() function unpacks data from a binary string.Syntaxunpack(format, data)Parametersformat − The format to use. Here are the possible valuesa −NUL-padded stringA − SPACE-padded stringh − Hex string, low nibble firstH − Hex string, high nibble firstc − signed charC −unsigned chars − signed short (always 16 bit, machine byte ... Read More

highlight_file() function in PHP

Chandu yadav

Chandu yadav

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

121 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

936 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

257 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

361 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

385 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

32 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

332 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

245 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

Advertisements