User Tools

Site Tools


en:dev:all:psr:psr-2

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
en:dev:all:psr:psr-2 [03.06.2015 15:55] – Externe Bearbeitung 127.0.0.1en:dev:all:psr:psr-2 [31.03.2017 06:59] (current) – [try, catch] Manuela v.d.Decken
Line 305: Line 305:
  
  
-==== try, catch ====+==== try, catch, finally ====
 A **try catch** block looks like the following. Note the placement of parentheses, spaces, and braces. A **try catch** block looks like the following. Note the placement of parentheses, spaces, and braces.
 <PHP> <PHP>
Line 314: Line 314:
 } catch (OtherExceptionType $e) { } catch (OtherExceptionType $e) {
     // catch body     // catch body
 +} finally {
 +    // finally body
 } }
 </PHP> </PHP>
en/dev/all/psr/psr-2.1433346932.txt.gz · Last modified: 03.06.2015 15:55 by 127.0.0.1