Skip to content

Instantly share code, notes, and snippets.

@arif98741
Last active August 19, 2018 03:11
Show Gist options
  • Save arif98741/d68a437edbad07bf1eac2bc5035ae780 to your computer and use it in GitHub Desktop.
Save arif98741/d68a437edbad07bf1eac2bc5035ae780 to your computer and use it in GitHub Desktop.
Return Statement
<?php
class Me_Class{
public function content()
{
global $conn;
$this->sql = "select * from question";
$result = $con->query($this->sql);
$question = array();
while ($rows = $result->fetch_array()) {
$question[] = $rows['ques'];
}
return $question;
}
public function question()
{
$question = $this->content();
echo explode(',', $question);
}
}
//https://github.com/arif98741
//www.phpdark.com
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment