Guide showing you PHP and RPG differences
- RPG is strongly typed.
- RPG indexes start at 1, where PHP starts at 0.
- Variables in PHP start with a Dollar sign. ($)
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| SELECT a.*, b.NumberOfRows | |
| FROM MYTABLE a | |
| CROSS JOIN (SELECT COUNT(*) AS NumberOfRows FROM MYTABLE) b |
| 'service_manager' => array ( | |
| 'invokables' => array ( | |
| 'AuthorizationIbmi' => 'authorization.php', | |
| ), | |
| 'factories' => array( | |
| 'dbadapter' => function($sm) { | |
| // DB adapter config | |
| }, | |
| 'tkconn' => function ($sm) { | |
| $dbAdapter = $sm->get('dbadapter'); |