---
# System prepended metadata

title: 陳 interview

---

# 陳 interview 

## Q1:
- [id number rule](https://web.fg.tp.edu.tw/~anny/idtest.htm?fbclid=IwAR0pI0ymRmanb3sx2noxsfYO1UgzSBVyh3VIM-U3Sl_TaGg6ZrezNT5srwg)
- https://docs.phpunit.de/en/10.0/writing-tests-for-phpunit.html#data-providers


```php
function validateIdNumber(string $idNumber): bool
{
    
}

// validateIdNumber("B145615943") true
// validateIdNumber("B236037460") true
// validateIdNumber("C205383090") true
// validateIdNumber("C261783083") true
// validateIdNumber("A108415988") true
// validateIdNumber("A155095381") true
// validateIdNumber("A176300816") false
// validateIdNumber("A108415980") false
// validateIdNumber("B145615947") false

$s = "abcde";
str_split($s, 1);


/*
public static function provide_testCases()
{
  return [
    ["B145615943", true],
    ["B236037460", true],
    ["C205383090", true],
    ["C261783083", true],
    ["A108415988", true],
    ["A155095381", true],
    ["A176300816", false],
    ["A108415980", false],
    ["B145615947", false],
  ];
}
*/

```