-3

Do we have "final block" (try catch final) in php 5.3?

I wrote a code in php 5.5 and I have to integrate this code in a system which only supports php 5.3

If we do not have this awesome functionality in php 5.3 then what is equivalent to this?

I have to display some messages using final block.

Any help would be appreciated. Please pardon my ignorance, this is the first time I am working in php.

Thanks in Advance!

ani
  • 191
  • 1
  • 3
  • 12

1 Answers1

2

There is only try and catch in PHP 5.3. The finally block exists starting from PHP 5.5.

apaderno
  • 28,547
  • 16
  • 75
  • 90
Charlotte Dunois
  • 4,638
  • 2
  • 20
  • 39