There are several aproaches:
(1) js-only: on font-resize click call a javascript function which iterates through the DOM (tree) structure of the HTML document, altering each font-size attribute where appropriate.
(2) php-only: in your stylesheet (say, style.css), replace font-size indications with markups, e.g. font-size=@{SMALL}.
write a php script (e.g. style.php) which takes a "font sizes no." parameter from the session (for example: "1" => small=8pt, medium=10pt, big=12pt and "2" => small=9pt, medium=11pt, big=13pt etc). this script reads in style.css and replaces the markups according to the font size setting stored in the session (default value = "normal" size).
include the style.php call in your page headers (<link rel="style.php" ...>). whenever a user clicks "change font size to xxx", the value in the session is altered.
(3) mixed css/php approach: same as in (2) but use only one (or very few) base font size(s) (which have an - example: - @{BASE_SIZE} markup) and derive the rest from those using the "em" size unit. this is a css measure unit which means "% size proportional to base font".