Loading ...
Sorry, an error occurred while loading the content.

Re: [phpXperts] what is the usages of var keyboard

Expand Messages
  • Abu Saleh Muhammad Shaon
    hi, 1. var $data = 1; // php 4 2. $data = 1; // php 5 php5 also support backword compatibility var keyword. no more use or diffidence.......... Best
    Message 1 of 6 , Sep 29, 2009
    • 0 Attachment
      hi,


      1. var $data = 1; // php 4
      2. $data = 1;       // php 5

      php5 also support backword compatibility var keyword.

      no more use or diffidence..........

       
      Best wishes by shaon
      ---------------------------------------------------
      Blog: http://asmshaon.wordpress.com/ 
      ---------------------------------------------------
      Bengal Solutions Ltd.



      From: "Felix T. Gomez, Jr." <felixtgomezjr@...>
      To: phpexperts@yahoogroups.com
      Sent: Monday, September 28, 2009 3:31:04 PM
      Subject: Re: [phpXperts] what is the usages of var keyboard

       

      When you user var, you are declaring the variable explicitly. I do not use that though. I just let PHP handle the work.


      Felix T. Gomez, Jr.
      http://www.shoutbux .com



      --- On Sun, 9/27/09, shiplu <shiplu.net@gmail. com> wrote:

      From: shiplu <shiplu.net@gmail. com>
      Subject: Re: [phpXperts] what is the usages of var keyboard
      To: phpexperts@yahoogro ups.com
      Date: Sunday, September 27, 2009, 9:08 AM

       

      On Fri, Sep 25, 2009 at 7:34 PM, ranjitbd@ymail. com <ranjitbd@ymail. com> wrote:
      > [code]
      >
      > //what is the usages of var keyword when declaration
      >
      > 1. var $data = 1;
      > 2. $data = 1;
      >
      > //what is the difference between two declaration?
      >
      > [/code]
      >
      >
      >
      > ------------ --------- --------- ------
      >
      > Visit phpXperts website at www.phpxperts. netYahoo! Groups Links
      >
      >
      >
      >

      var $data1 = 1; // explicit declaration
      $data2 = 1; // implicit declaration

      --
      A K M Mokaddim
      http://talk. cmyweb.net
      http://twitter. com/shiplu
      Stop Top Posting !!
      বাংলিশ লেখার চাইতে বাংলা লেখা অনেক ভাল



    Your message has been successfully submitted and would be delivered to recipients shortly.