<?php
$emailed = array('cam.hurd@gmail.com', 'bob@cheese.com');
$message = count($emailed) > 10
? implode(array_slice($emailed, 0, 10), ', ') . 'and ' . count($emailed) . ' others were sent an invite!'
: implode($emailed, ', ') .
count($emailed) == 1 ? ' was sent an invite' : ' were sent invites!';
echo(implode($emailed, ', ') . (count($emailed) == 1 ? ' was sent an invite' : ' were sent invites!'));
Fatal error: Unparenthesized `a ? b : c ? d : e` is not supported. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in /in/jVSJP on line 5
Process exited with code 255.
Output for 7.4.0 - 7.4.33
Deprecated: Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in /in/jVSJP on line 5
Deprecated: implode(): Passing glue string after array is deprecated. Swap the parameters in /in/jVSJP on line 7
Deprecated: implode(): Passing glue string after array is deprecated. Swap the parameters in /in/jVSJP on line 10
cam.hurd@gmail.com, bob@cheese.com were sent invites!