Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




calendar_week_mod [ WordPress Function ]

calendar_week_mod ( $num )
Parameters:
  • (int) $num Number of day.
Returns:
  • (int) Days since the start of the week.
Defined at:



Get number of days since the start of the week.

Source


<?php
function calendar_week_mod($num) {
    
$base 7;
    return (
$num $base*floor($num/$base));
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics