GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Rant See, you messed up! You think it's set??? (https://gfy.com/showthread.php?t=1203694)

blackmonsters 06-22-2016 01:47 PM

See, you messed up! You think it's set???
 
You think it's set but it's empty!

Don't believe me?

Then run this script :

<?php

$var="";

if(empty($var)) {
echo "This is empty<br>";
}

if(isset($var)) {
echo "This is set<br>";
}

echo "<br>See, you messed up";

?>



:1orglaugh

Colmike9 06-22-2016 01:54 PM

Because a null character is not the same as a php null constant.. So it's set.
Didn't test it, though..

Colmike9 06-22-2016 02:03 PM

Don't use empty to confuse people, dick... :upsidedow

CaptainHowdy 06-22-2016 02:21 PM

Colmike7 killed it ...

blackmonsters 06-22-2016 02:37 PM

Quote:

Originally Posted by Colmike7 (Post 20981251)
Don't use empty to confuse people, dick... :upsidedow

They were already confused and that's why I wrote the script.

:1orglaugh

Colmike9 06-22-2016 02:38 PM

Quote:

Originally Posted by blackmonsters (Post 20981356)
They were already confused and that's why I wrote the script.

:1orglaugh

lol :winkwink:

blackmonsters 06-22-2016 02:39 PM

Quote:

Originally Posted by Colmike7 (Post 20981227)
Because a null character is not the same as a php null constant.. So it's set.
Didn't test it, though..


<?php

$var;

if(empty($var)) {
echo "This is empty<br>";
}

if(isset($var)) {
echo "This is set<br>";
}

echo "<br>Now you got it";

?>

JesseQuinn 06-22-2016 02:42 PM

I always feel smart until y'all starting writing php ish. from looking at the various code I can kiiinda grasp the basics at times, but it's overall incomprehensible

fuck me, need to learn, just not enough hours. it's still like Hausa to me (was gonna say greek but that can be taken so wrong in adult venue) =)

envy y'all, sincerely. will get there one day


All times are GMT -7. The time now is 07:51 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc