if ($ex[3] == ":~time"){ fputs($socket, "The time is: blah"); }