473,407 Members | 2,320 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Zend Certification PHP 5 : Difference between isset() and other is_*() functions

Hello
I try to answer this question for the Zend Certification PHP 5 :
"What is the difference between isset() and other is_*() functions
(is_alpha(), is_number(), etc.)?"

Do you have a solution ?

Thanks

Dec 27 '06 #1
3 4343

oggy wrote:
Hello
I try to answer this question for the Zend Certification PHP 5 :
"What is the difference between isset() and other is_*() functions
(is_alpha(), is_number(), etc.)?"

Do you have a solution ?

Thanks
Read this:
<http://www.php.net/isset>

In particular the warning that "isset() only works with variables as
passing anything else will result in a parse error" and the note that
"Because this is a language construct and not a function, it cannot be
called using variable functions."

Dec 27 '06 #2
thanks a lot
"isset() only works with variables" means that its not working with
constants (only).

On 27 déc, 20:21, "ZeldorBlat" <zeldorb...@gmail.comwrote:
oggy wrote:
Hello
I try to answer this question for the Zend Certification PHP 5 :
"What is the difference between isset() and other is_*() functions
(is_alpha(), is_number(), etc.)?"
Do you have a solution ?
ThanksRead this:
<http://www.php.net/isset>

In particular the warning that "isset() only works with variables as
passing anything else will result in a parse error" and the note that
"Because this is a language construct and not a function, it cannot be
called using variable functions."
Dec 28 '06 #3

oggy wrote:
thanks a lot
"isset() only works with variables" means that its not working with
constants (only).
That's half of it. The other half is that it won't work with the
return value of a function call (directly). Consider the following:

function foo() {
return 1;
}

//This is ok:
$x = foo();
isset($x);

//But this throws a fatal error:
isset(foo());

Dec 28 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: AJ | last post by:
Hi all At the moment, I use Dreamweaver to develop the basics of my PHP stuff and then hand tune anything that I need to. I'm now looking at the next level and was wondering about Zend. What...
0
by: R. Rajesh Jeba Anbiah | last post by:
* http://www.zend.com/store/education/certification/zend-php-certification.php * http://vue.com/zend/ * http://phpcertguide.com/ Just curious, is anyone got a Zend PHP certification. Any...
5
by: news | last post by:
I'm trying out the Zend Development Environment 4, and for the most part I like it, except for two things. It seems to think certain lines that are perfectly valid are bugs. Like this: while...
0
by: writeson | last post by:
Hi all, At work I'm using Zend Studio 3.5.2 to develop PHP files on my Win2K desktop machine. I've got Zend Studio setup with a secure FTP (SFTP) connection to a RedHat Enterprise Linux machine....
20
by: patrick courant | last post by:
Hello everyone, I am an european freelance engineer, fighting with computer science for too many years to remember. However, when applying for new missions, I found that experience is not always...
2
by: NotGiven | last post by:
I am thinking about taking the exam and want to know what resources you used to pass it?
7
by: JM | last post by:
Are there any zend certified engineers present ? I would like to know if the online courses are worth their money. Are the teachers good ? Or do they just read from a textbook ? Can you ask...
0
by: Rahul | last post by:
Hello Friends, I am planning to go for Zend PHP 5 certification exam.I am looking for members here who have completed the same and are ready to share their thoughts regarding the Value of...
1
by: mosesdinakaran | last post by:
Hi All, Is there a difference between Zend Extension and PHP Extensions In php.ini For Mysql we have extension=mysql.so But for XDEBUG we have
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.