Re: [PHP] Not Null?



On 10/31/07, Robin Vickery <robinv@xxxxxxxxx> wrote:
On 31/10/2007, Steve Marquez <smarquez@xxxxxxxxxxxxxxxxxx> wrote:
Greetings,

I have a script that looks for the variable to be NULL and then execute.. Is
there a way for the script to look for anything or something in the variable
and then execute?

Ex:

If (Œ$a¹ == Œ ANYTHING¹) {

oh dear, krazee quotes... at least I presume that's what those wierd
characters are.

Look in the manual for isset() (http://www.php.net/isset) and empty()
(http://www.php.net/empty).

-robin

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Robin, I think you hit it exactly on the head with the quote issue.

Steve, use regular single or double quotes, not any kind of fancy
quotes or backticks. It may be the editor you're using: if you use
Microsoft Word or another similar word processor, it may replace the
quotes with something it things is "prettier". If you're using
Windows, use notepad, `edit.com` from the command line, or download
any IDE you'd like - many or which are free and open source, and even
handle PHP specifically.

--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107

Give a man a fish, he'll eat for a day. Then you'll find out he was
allergic and is hospitalized. See? No good deed goes unpunished....
.



Relevant Pages

  • Re: basic help to run an application from WSH
    ... string values must be enclosed in quotes. ... The Run method will execute on c:\notepad.exe. ... I'm just learning vbscript for wsh and here is my first script, ... Also if I cut and paste the exact file path from the script into the ...
    (microsoft.public.scripting.vbscript)
  • Re: Launching Multiple Programs From A Command Prompt Script
    ... quotes "" before the quotes containing the actual executable name, ... >> I would like to launch multiple programs from a command prompt script ... the script will not execute the second line until the first ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: basic help to run an application from WSH
    ... The Run method requires at least one argument, which is a string. ... string values must be enclosed in quotes. ... The Run method will execute on c:\notepad.exe. ... I'm just learning vbscript for wsh and here is my first script, ...
    (microsoft.public.scripting.vbscript)
  • Applescript and Autoformat (search and replace), Word 2004
    ... script that will take care of a recurring editing issue with nested ... quotes to double quotes, ... set oldauto2 to auto format as you type replace quotes ... set auto format as you type replace quotes to false ...
    (microsoft.public.mac.office.word)
  • Re: Accessing full command line or parameters WITH QUOTES
    ... The problem is that VBScript doesn't allow access to the full command line ... rebuild the parameters with the quotes inserted properly. ... When I was writing the script on XP, I managed to cheat and grab the ...
    (microsoft.public.scripting.vbscript)