Why PHP Called As Loosely Typed Language In Definition

admin_img Posted By Bajarangi soft , Posted On 16-09-2020

Loosely typed languages refer to code that do not require defining the variable.when declaring a variable in these programming scripts, there is no need of defining data type stored in them.While working with these programming scripts, we can create a new variable with different name and we can assign it the integer value.

Loosely_type

 

  1. Loosely typed languages refer to those programming scripts that do not require defining the variable.
  2. Every variable stores a particular kind of data.
  3. Loosely typed language makes programming easier, and is more tolerant of carelessly written code.
  4. It can also reduce the number of lines of code needed to reach given result.
  5. Loosely typed language is that potentially it creates more work for the processor in checkng how a variable is being used, than      a language where the programmer must be careful to declare the type of each variable and stick to it, otherwise the language     interpreter or compiler simply gives up and errors.
  6. PHP when you declare a variable, you can with no need to worry about what kind of data will be stored in that variable.  I could make a new variable called $string and then assign it an integer value

Related Post