Do you mean that yo want to find a match if the value of var contains a 'z' character anywhere in it?
You can use the case statement for this, as it does glob pattern matching:
case "$var" in
echo "found a z"
echo "didn't find a z"