Top "Isset" questions

Determine if a variable is set and is not NULL

Why do I need the isset() function in php?

I am trying to understand the difference between this: if (isset($_POST['Submit'])) { //do something } and if ($_POST['Submit']) { //do …

php post if-statement isset
Fix PHP Notice: 'Undefined index' on Wordpress

I'm trying to fix the Undefined index PHP notice on a wordpress site. At the moment this is what I …

php wordpress isset
PHP Make a simple if-isset-empty function

I'm coding a worksheet app for a printer company. I'm getting flood of forms. For every single input field I …

php function post isset simplify
Check if variable is set and then echo it without repeating?

Is there a concise way to check if a variable is set, and then echo it without repeating the same …

php variables isset
PHP 5.5.16 Illegal offset type in isset or empty

I'm working with Laravel here (semi-irrelevant) and am running into a weird PHP issues I've not seen before. I am …

php exception laravel isset
isset($_COOKIE['name'])) not working

So I am making a blog for myself and to give myself admin privileges I set a cookie. I have …

php cookies isset
How to check if a multidimensional array item is set in JS?

How to check if a multidimensional array item is set in JS? w[1][2] = new Array; w[1][2][1] = new Array; w[1][2][1][1] = 10; w[1][2][1][2] = 20; …

javascript arrays multidimensional-array isset
How can I use PHP's isset() in addition to empty()?

How would I add isset() and keep the empty() on my code below? $pagesize = (!empty($_GET['pagesize'])) ? $_GET['pagesize'] : 20; UPDATE: …

php isset
What is the proper way to test CodeIgniter session variable?

Take the following code snippet. What is the best way to test to make sure the session variable isn't empty? &…

php codeigniter session variables isset
Why is array_key_exists 1000x slower than isset on referenced arrays?

I have found that array_key_exists is over 1000x slower than isset at check if a key is set …

php performance reference isset array-key-exists