Created
November 30, 2016 16:50
-
-
Save iaditya/b2254e3072970a4bb73d9ee8a833b211 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$data = [ | |
'recipientLists' => 'toPatientNoEmail', | |
'template' => 'toPatientNoEmail', | |
'vars' => [ | |
'username' => '20161130-27821', | |
'name' => 'Aditya', | |
'role' => 'Provider', | |
'added_from' => 'Ketan', | |
'facility_name' => 'Happy Hippo Clinic' | |
] | |
]; | |
foreach ($data['vars'] as $key) { | |
$key = substr($key, 0, 5); | |
debug($key); | |
} | |
debug($data); exit; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment