View Single Post
ישן 27-03-09, 19:27   # 16
Shay Ben Moshe
משתמש - היכל התהילה
 
מיני פרופיל
תאריך הצטרפות: Oct 2007
הודעות: 1,397

Shay Ben Moshe לא מחובר  

אממ אני לא יודע אם זה עוזר לך, כי אני לא יודע Python אבל אני מאמין שאת הקוד הזה שכתבתי בדקה אפשר גם לכתוב בPython בקלות..

PHP קוד:
<?php

$word 
"This is text"// The orginial text
$word2 ""// The new text

// We use a loop to transform each letter to the next letter
for($i=0;$i<strlen($word);$i++) {
    
$letternow $word[$i]; // Select the letter
    
$letternow++; // Transform the letter to the next one
    
$word2 .= $letternow// Add the new letter to $word2
}

echo 
$word2// Echo the new text
מקווה שעזרתי :/
בהצלחה
__________________
שי בן משה - בונה אתרים
חותך אתרים, ומתכנת צד לקוח וצד שרת.
  Reply With Quote