Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
return $id ? "The item was updated." : "The item was created";
########
$action = $id ? "updated" : "created";
return sprintf("The item was %s.", $action).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment