Differences

Differences between constants and variables are as fallow:-

  • There is no need to write a dollar sign ($) before a constant, where as in Variable one has to write a dollar sign.
  • Constants cannot be defined by simple assignment, they may only be defined using the define() function.
  • Constants may be defined and accessed anywhere without regard to variable scoping rules.
  • Once the Constants have been set, may not be redefined or undefined.

Comments

  1. Nice site....Please refer this site also Our vision success!Training are focused on perfect improvement of technical skills for Freshers and working professional. Our Training classes are sure to help the trainee with COMPLETE PRACTICAL TRAINING and Real time methodologies
    Dot Net Training Institute in Chennai
    Selenium Testing Training in Chennai
    Software Testing Coaching institute in Chennai
    Java Training Institute in Chennai
    PHP Course in Chennai

    ReplyDelete
  2. Hi, thanks for your blog, if you want to learn about programming languages like java, php, android app, embedded system etc. I think this training institute is the best one.
    best python training in coimbatore
    Android training in coimbatore
    Networking training in coimbatore

    ReplyDelete

Post a Comment

Popular posts from this blog

Uses of PHP

What is PHP?