Skip to content

Instantly share code, notes, and snippets.

View DevAly's full-sized avatar
💭
I may be slow to respond.

Amine Yaakoubi DevAly

💭
I may be slow to respond.
  • Devaly
View GitHub Profile
<?php
class Post {
public function latestWithCategory($amount = 10, $category_id, $pageId, $all = null) {
$lastpageNumber = round(intval($all) / intval($amount),PHP_ROUND_HALF_DOWN);