Tag: functions

JavaScript random number between minimum maximum number

JavaScript

JavaScript random number between minimum maximum number. Generate random number with given minimum and maximum number using Math.random and Math.floor function.

  Read More »

What is undefined index Notice in PHP array process and How to avoid it?

PHP

Undefined index Notice in PHP array processing. When we try to access key in PHP array which not exists in array, PHP gives Undefined index Notice.

  Read More »

Array to query string php – Query string to array php

PHP

Content Array to query string php Query string to array php PHP two userful function for convert Array to query string php and Query string to array php with example.

  Read More »

Default Parameters in JavaScript function

Default Parameters in JavaScript function

Here is simple code snippet for JavaScript function with default parameter. Demo code given for use two parameter function with default value. You can use both parameter default value or first or second default parameter value.

  Read More »

PHP isset and empty

PHP isset and empty

What is your coding style for using PHP isset and empty function. By using isset and empty function as per requirement we can remove unwanted “Notice: Undefined index…” notice. I suggest coding style #2, what is yours?

  Read More »