The one solution I can see is to eval the value of withoutNumberSign and assign that to a new variable, which then you can use to dereference the array you want to use. So that would look like:
var login = ["login", "php"];
// This for testing
// var withoutNumberSign = "login";
var newvar = eval(withoutNumberSign);
console.log(newvar[0]);
A more elegant solution IMO would be to use an associative array at your first layer, on which you'd perform a lookup based on withoutNumberSign.
var associativeArray = {};
associativeArray["login"] = ["login", "php"];
console.log(associativeArray[withoutNumberSign][0]);
withoutNumberSign?login?