DevelopmentServer: serialize.php

File serialize.php, 262 bytes (added by chris, 6 years ago)
Line 
1#!/usr/bin/php
2<?php
3
4if ($argc != 2 ) {
5?>
6
7This is a command line PHP script with one option.
8
9  Usage:
10  <?php echo $argv[0]; ?> <option>
11
12  <option> the string you want to serialize
13
14<?php
15} else {
16$serialized = serialize($argv[1]);
17echo $serialized;
18}
19?>
20