1<?php 2 3$dict = ""; 4foreach (get_declared_classes() as $class) { 5 $len = strlen($class); 6 $dict .= "\"$len:\\\"" . addslashes($class) . "\\\"\"\n"; 7} 8 9file_put_contents(__DIR__ . "/dict/unserialize", $dict); 10