George John has Published 1167 Articles

imagecolorclosesthwb() function in PHP

George John

George John

Updated on 31-Dec-2019 07:20:04

25 Views

The imagecolorclosesthwb() function gets the index of the color which has the hue, white and blacknessSyntaximagecolorclosesthwb ( $img, $red, $green, $blue )Parametersimg: Create image with imagecreatetruecolor()red: Red color componentgreen: Green color componentblue: Blue color componentReturnThe imagecolorclosesthwb() function returns an integer with the index of the color which has the hue, ... Read More

imageflip() function in PHP

George John

George John

Updated on 31-Dec-2019 07:18:28

221 Views

The imageflip() function is used to flip an image using given mode.Syntaxbool imageflip(img, mode )Parametersimg: An image resource created using imagecreatetruecolor()mode: The flip mode. Here are the possible values:IMG_FLIP_HORIZONTAL – Flips the image horizontally.IMG_FLIP_VERTICAL – Flips the image vertically.IMG_FLIP_BOTH – Flips the image both horizontally and vertically.ReturnThe imageflip() function returns ... Read More

imagesy() function in PHP

George John

George John

Updated on 31-Dec-2019 06:24:03

61 Views

The imagesy() function gets the height of image. It returns the height of the image or FALSE on errors.Syntaximagesy(img)Parametersimg: Image resource created with imagecreatetruecolor()ReturnThe imagesy() function returns the height of the image or FALSE on errors.ExampleThe following is an example: Live DemoOutputThe following is the output:250Read More

imagedashedline() function in PHP

George John

George John

Updated on 31-Dec-2019 06:20:51

38 Views

The imagedashedline() function draws a dashed line.Syntaximagedashedline( $image , $x1 , $y1 , $x2 , $y2 , $color )Parametersimage Create a blank image with imagecreatetruecolor().x1 Upper left x-coordinatey1 Upper left y-coordinatex2 Bottom right x-coordinatey2 Bottom right y-coordinatecolor The fill color.ReturnThe function returns TRUE on success or FALSE on failure.ExampleThe following is an example:OutputThe following is the ... Read More

usleep() function in PHP

George John

George John

Updated on 30-Dec-2019 07:01:37

38 Views

The usleep() function delays execution of the current script for few microseconds.Syntaxusleep(msec)Parametersmsec − The number of microseconds to delay the script.ReturnThe usleep() function returns nothing.Example Live DemoOutputThe following is the output.03:06:08 03:06:10 03:06:15

time_nanosleep() function in PHP

George John

George John

Updated on 30-Dec-2019 06:46:17

38 Views

The time_nanosleep() function delays execution of the current script for few seconds and nanoseconds.Syntaxtime_nanosleep(sec, nsec)Parameterssec − The number of seconds to delay the script.nsec − The number of nanoseconds to delay the script.ReturnThe time_nanosleep() function returns true on success.Example Live DemoOutputThe following is the output.02:57:04 02:57:06 02:57:08Read More

pack() function in PHP

George John

George John

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

231 Views

The pack() function packs data into a binary string.Syntaxpack(format , args)Parametersformat − The format to use. Here are the possible values −a − NUL-padded stringA − SPACE-padded stringh − Hex string, low nibble firstH − Hex string, high nibble firstc − signed charC − unsigned chars − signed short (always ... Read More

get_browser() function in PHP

George John

George John

Updated on 30-Dec-2019 06:37:56

697 Views

The get_browser() function looks up the user's browscap.ini file and returns the capabilities of the user's browser.Syntaxget_browser(user, return_array)Parametersuser − The name of HTTP user agent.return_array − If this parameter is set to true, the function will return an array instead of an object.ReturnThe get_browser() function returns object or array with ... Read More

FILTER_VALIDATE_EMAIL constant in PHP

George John

George John

Updated on 27-Dec-2019 10:17:35

318 Views

The FILTER_VALIDATE_EMAIL() constant validates an email address.ReturnThe FILTER_VALIDATE_EMAIL() does not return anything.Example Live DemoOutputThe following is the output.examplee@demo.com = valid email address

Digital Subscriber Lines

George John

George John

Updated on 03-Aug-2019 19:56:03

1K+ Views

DefinitionDigital Subscriber Line (DSL) is a communication technology that offers high – bandwidth digital communication over standard telephone lines formed of copper wires.FeaturesDSL is a family of technologies under the general name of xDSL, for various x, like ADSL, HDSL, and RADSL. Originally, it was a part of the Integrated Services ... Read More

Advertisements