Jump to content

"looped" function, how?


SaMike

Recommended Posts

So i've found that even if variable has no content isset($var) can still return true, so i made my own function is_set:

<?php
function is_set($var){
if(strlen($var) > 0){
	return true;
} else {
	return false;
}
}
?>

and it works fine. But for php's inbuild isset function, you can use it like this: if(isset($var1, $var2, $var3)) and i'd like to know if its possible to make my function work that too and if so, how?

Link to comment
https://forums.phpfreaks.com/topic/198850-looped-function-how/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.