473,394 Members | 1,679 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,394 software developers and data experts.

Explicit declaration of variables

I'm a old timer programmer (assembler, fortran, pascal, C) and now
converting from PERL to PHP. In PERL I always use the "use strict" to
force warning messages of undeclared variables. I haven't been able to
find anything similar in PHP, is there such an option? When you type
as bad as I do, having the PHP interpretor/compiler find misspelled
variable names expedites the debugging process.

Magilla...

Jan 17 '06 #1
1 3667
d
"magilla" <ji************@jax.org> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
I'm a old timer programmer (assembler, fortran, pascal, C) and now
converting from PERL to PHP. In PERL I always use the "use strict" to
force warning messages of undeclared variables. I haven't been able to
find anything similar in PHP, is there such an option? When you type
as bad as I do, having the PHP interpretor/compiler find misspelled
variable names expedites the debugging process.

Magilla...


If you turn your error reporting on:

http://uk.php.net/error_reporting

It will indeed give you helpful messages like:

Notice: Undefined variable: somethin in /blah/woo/waah.php

:)
Jan 17 '06 #2

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

Similar topics

16
by: John Smith | last post by:
Hello, I'm trying to port some code from Windows to Mac OSX with gcc. Assume we have a class list which works like this: template<class T> class List { protected:
2
by: Nils Emil P. Larsen | last post by:
Hello I have read about a C shared library which I want to use in my C program. (It's a library to encode/decode packets from/to a serial bus running with the SNAP-protocol). Unfortunatly...
6
by: John Kotuby | last post by:
Hi all, I am simply trying to include the Option Explicit declaration at the top of an ASP page and am getting an error: Error Type: Microsoft VBScript compilation (0x800A0400) Expected...
6
by: wassa | last post by:
I get different results for div.classname { display:; } and div.classname { display:block; } Bug?
22
by: Nathan Laff | last post by:
so, myself and the other developers i work with were looking at the v3.0 specifications. extensions look great, buy what is the point of implicit variables with the 'var' type? before you bash...
5
by: d.adamkiewicz | last post by:
Hello Folks I was wondering if the following could be better written: var myObject = {}; /* in this case explicit declaration seems to be mandatory otherwise 'myObject.ala has no properties'...
3
by: Jja | last post by:
Hello, I am very new to this site. before i start may i first introduce myself i am 'Jhalil, a beginner Vb6 programmer. i stumbled on this site on my quest for a code in vb that can connect me...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.