Questions tagged as 'empty'

2
answers

Parse error given when checking variables with empty () function

I have a problem with my PHP when I pass more than one variable for it to check separated by a comma it generates a parse error. Look at my code below: if (isset($_POST['btnCriaTempo'])){ $ordem = trim($_POST['ordem']); $time...
asked by 10.01.2014 / 00:14
3
answers

When should I use empty or isset?

I noticed that some people have doubts about the use of these two functions, or if they have no doubts, they seem to unnecessarily apply one of these functions, and in some cases the other functions better. For example, to verify that a value...
asked by 07.10.2015 / 21:53
1
answer

How to create an empty block?

How do I create a BLANK + TRANSPARENT block of 800px height per 1000px width? And why the code below does not work for this? html <div class="block"></div> css .block { height: 800px; width: 1000px; } With this, I'...
asked by 15.06.2014 / 23:12
1
answer

Problems checking empty ()

I'm having problems checking a string using EMPTY (), it's the following .. If I play space on it, it "" is no longer empty .. and ends up inserting in the database the empty value, how can I solve this, what function ?     
asked by 06.06.2014 / 00:31
1
answer

How to get first value returned by foreach

I am new to programming and am trying to solve my problem with foreach ... I have a foreach that returns me the groups of photos that have photos in them ... however I need to get the first group that the foreach find photos and apply the che...
asked by 08.03.2018 / 15:09