What are the ways to define a constant in PHP?

0

PHP constants are name or identifier that can not be changed during the execution of the script. PHP constants are defined in two ways:

  • Using define() function
  • Using const() function
Php
asked Apr 15, 2023 at 00:44
Sign in to add a comment

0 Answers

0
📝 No answers yet!

Be the first to answer this interview question.

Your Answer

Sign in to post your answer and help the community.