Each user-defined variable is declared with an assigned data type, which means only data (values) with that specific data type can be assigned (linked) to the variable. For example, when declaring $number_of_posts
, you would also declare the variable is an integer. Then only integers can be assigned in that variable.