Sheetsu

 Sheetsu

Symfony Meetup #17 LT 資料
https://symfony.connpass.com/event/63659/

8e844e43f029ec38e206a464cf4587b3?s=128

Takashi Kanemoto

August 27, 2017
Tweet

Transcript

  1. 17.
  2. 18.
  3. 19.
  4. 20.
  5. 31.
  6. 33.

    $base26 = base_convert($number, 10, 26); $from = '0123456789abcdefghijklmnop'; $to =

    '0ABCDEFGHIJKLMNOPQRSTUVWXY'; $name = ''; foreach (str_split($base26) as $digit) { $digit = substr($to, strpos($from, $digit), 1); $name .= $digit; } echo $name . PHP_EOL; ྻ൪߸ˠྻ໊ͷม׵͕ҙ֎ͱ೉͔ͬͨ͠
  7. 35.

    $number = 3; // -> C $number = 30; //

    -> AD ྻ൪߸ˠྻ໊ͷม׵͕ҙ֎ͱ೉͔ͬͨ͠
  8. 36.

    $number = 3; // -> C $number = 30; //

    -> AD $number = 26; // -> A0 ͑ͬ ྻ൪߸ˠྻ໊ͷม׵͕ҙ֎ͱ೉͔ͬͨ͠
  9. 37.

    $number = 3; // -> C $number = 30; //

    -> AD $number = 26; // -> A0 ͑ͬ // Z ʹͳͬͯ΄͔ͬͨ͠ͷʹ… ྻ൪߸ˠྻ໊ͷม׵͕ҙ֎ͱ೉͔ͬͨ͠
  10. 42.