Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save philipobenito/4a49d56beb6cd1cffb7435bdcbd17059 to your computer and use it in GitHub Desktop.
Save philipobenito/4a49d56beb6cd1cffb7435bdcbd17059 to your computer and use it in GitHub Desktop.
<?php
class Foo
{
public function doSomething($id, $name, $email)
{
$bar = new Bar;
// .. possibly manipulate $id, $name and $email
// assume we want to edit a row in a database and
// then return an array of data containing that row
return $bar->editAndReturnUser($id);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment