it is because the operation is done at runtime. However, what if you want to call and do the operation later or dynamically?. Then, let’s write the function as follow: So, what PHP understand is the…